Start Page » Game Development with the Drag[en]gine » Skin Texture Properties » Texture Property Database » shadow.importance
Defines the importance of shadow casting for this object.
Excepted Data Source | 1 component value |
Data Range | 0 to 1 |
Default Value | 1 |
Affected Modules | Graphic |
Linked Properties | - |
The shadow.importance texture property defines a threshold to stop this material from casting shadows. This is a performance optimization and is linked to user settings. If the user chooses a high detail level this shadow is shown otherwise not. To prevent shadows from being cast at all use shadow.none texture property instead. A value of 0 equals to the lowest detail level where only the most vital materials cast shadows. A value of 1 equals to the highest detail level where any material that can casts shadows. Values in between act as the threshold from where on the material starts casting shadows. Hence the material casts shadows if the detail level is at most this value. Using this texture property is not required for creating games but can help Graphic Modules for weaker systems to improve performance.
The source is typically a single component value greater in the range from 0 to 1.
The default value for this texture property is 1 which makes this material casting shadows at all detail levels.
( TODO: example image )