User Tools

Site Tools



Texture Property Nameshadow.importance
DescriptionDefines the importance of shadow casting for this object
Excepted Data Source1 component value
Data Range0 to 1
Default Value1
Affected ModulesGraphic
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 )

You could leave a comment if you were logged in.
gamedev/textureproperties/shadow_importance.txt · Last modified: 2012/12/02 16:30 by dragonlord