Help needed: understanding the IL2 .mat file
#2

Hello, Eexhaton.

To scale any texture:
TextureCoordScale A B C D

Where:
A B are coordinates X and Y.
You can change the position of the texture and you need to change it if you change the size of the texture, because 0 0 is the upper left corner.

C D Scale for size X and Y
These numbers tell to the engine, how many textures are needed to fill the object on X and how many on Y, so if you need to increase the size of the texture, you have to reduce those numbers.
But if the entire object already is filled by only one texture, then if you reduce those numbers the texture will exceed the object and the texture will be cut.

tfWrapX E
tfWrapY F

Where E and F can be:
1 repeat the texture until to fill the object, 0 don't repeat.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)