RenderStateManager.SpecularEnable Property (Microsoft.DirectX.Direct3D)

Retrieves or sets a render state that enables specular highlights.

Definition

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

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.