RenderStateManager.SpecularEnable Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets a render state that enables specular highlights.

Definition

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);

Property Value

System.Boolean . Set to true to enable specular highlights, or false to disable them.

This property is read/write. 

Remarks

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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.