Shader tags define the visual appearance of models in the game world. The shader tag class itself is abstract and cannot be created directly, but is extended by the various child shader types like shader_model and shader_environment.
Field | Type | Comments |
---|
| bitfield |
Flag | Mask | Comments |
---|
| 0x1 | Causes lightmap UVs for this material to be based on existing texture UVs rather than generated completely anew by Tool/Sapien. This can be used to fix squiggly or jagged shadowing artifacts often seen on large complex surfaces using a single material. Note that any overlapping UV faces may cause lighting artifacts because one part of the lightmap texture is being used to represent different locations. | | 0x2 | Lighting will ignore surface normals (the direction faces point). Use this for shaders where the surface normals are not a good representation of lighting directionality, such as foliage mapped to flat planes for trees and bushes. | | 0x4 | |
|
| enum |
Option | Value | Comments |
---|
| 0x0 | The surface will receive the highest possible quality of lightmaps. Shadows will be sharper and there will be greater detail in local variations in lighting. | | 0x1 | The surface will receive a medium quality of lightmaps. | | 0x2 | The surface will receive a low quality of lightmaps. | | 0x3 | The surface will receive the worst possible quality of lightmaps. Use this for shaders which will be used in areas which do not need detailed shadows or the player is unlikely to visit in order to save texture space. |
|
| float |
| ColorRGB |
| ColorRGB |
| bitfield |
|
| enum |
Option | Value | Comments |
---|
| 0x0 | | | 0x1 | | | 0x2 | | | 0x3 | | | 0x4 | | | 0x5 | | | 0x6 | | | 0x7 | | | 0x8 | | | 0x9 | | | 0xA | | | 0xB | | | 0xC | | | 0xD | | | 0xE | | | 0xF | | | 0x10 | | | 0x11 | | | 0x12 | | | 0x13 | | | 0x14 | | | 0x15 | | | 0x16 | | | 0x17 | | | 0x18 | | | 0x19 | | | 0x1A | | | 0x1B | | | 0x1C | | | 0x1D | | | 0x1E | | | 0x1F | | | 0x20 | |
|
| uint16 |
Thanks to the following individuals for their research or contributions to this topic:
- Kavawuvi (Invader tag definitions)
- MosesOfEgypt (Tag structure research)