RenderStateManager.SpecularEnable Property |
Language: |
Retrieves or sets a render state that enables specular highlights.
Visual Basic Public Property SpecularEnable As Boolean C# public bool SpecularEnable { get; set; } C++ public:
property bool SpecularEnable {
bool get();
void set(bool value);
}JScript public function get SpecularEnable() : boolean
public function set SpecularEnable(boolean);
System.Boolean
This property is read/write.
Set to true to enable specular highlights, or false to disable them.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.