RenderStateManager.SpecularEnable Property |
Language: |
Retrieves or sets a render state that enables specular highlights.
Visual Basic .NET Public Property SpecularEnable As Boolean C# public bool SpecularEnable { get; set; } Managed C++ public: __property bool get_SpecularEnable();
public: __property void set_SpecularEnable(bool);JScript .NET public function get SpecularEnable() : boolean
public function set SpecularEnable(boolean);
System.Boolean . Set to true to enable specular highlights, or false to disable them.
This property is read/write.
The default value is false.
Specular highlights are calculated as though every vertex in the object being lit is at the object's origin. This gives the expected results as long as the object is modeled around the origin and the distance from the light to the object is relatively large. In other cases, the results are undefined.
When this state is set to true, the specular color is added to the base color after the texture cascade but before alpha blending.
Feedback? Please provide us with your comments on this topic.