This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
modding:developerinfo:models:materials [2018/07/04 16:26] chregu |
modding:developerinfo:models:materials [2018/07/04 16:37] chregu |
||
---|---|---|---|
Line 102: | Line 102: | ||
**Maps** | **Maps** | ||
- | Maps are used to describe the textures used by materials. There are three types: two dimensional (''TWOD''), cube map (''CUBE_MAP'') and an array of two dimensional textures (''TWOD_ARRAY''). The accepted file formats are ''TGA'' and preferably ''DDS''. | + | Maps are used to describe the textures used by a material. There are three types: two dimensional (''TWOD''), cube map (''CUBE_MAP'') and an array of two dimensional textures (''TWOD_ARRAY''). The accepted file formats are ''TGA'' and preferably ''DDS''. |
<code lua> | <code lua> | ||
Line 122: | Line 122: | ||
**Operations** | **Operations** | ||
+ | |||
+ | A material can use multiple overlay operations (currently at most two) with textures. For each operation, a map and a set of parameters have to be specified. Apart from being disabled (''NO_OP''), there are three types of operations. There are three modi of obtaining the texture coordinates for the overlay texture: use the default uv-coordinates (''NORMAL''), the world coordinates (''WORLD_XY'') or a second uv-coordinate set (''TEXCOORD''). | ||
<code lua> | <code lua> |