This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
modding:developerinfo:models:materials [2018/07/04 16:27] chregu |
modding:developerinfo:models:materials [2018/07/04 17:07] chregu |
||
---|---|---|---|
Line 117: | Line 117: | ||
compressionAllowed = true, -- texture compression | compressionAllowed = true, -- texture compression | ||
redGreen = false, -- two channel format (BC5) | redGreen = false, -- two channel format (BC5) | ||
- | scaleDownAllowed = false -- ??? | + | scaleDownAllowed = false -- texture can be scaled down, if texture quality is not set to 'Very high' |
} | } | ||
</code> | </code> | ||
**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 local coordinates (''NORMAL''), the world coordinates (''WORLD_XY'') or the uv-coordinates (''TEXCOORD''). | ||
<code lua> | <code lua> |