Share via


RenderStateManager.Lighting Property (Microsoft.DirectX.Direct3D)

Enables or disables Microsoft Direct3D lighting.

Definition

Visual Basic Public Property Lighting As Boolean
C# public bool Lighting { get; set; }
C++ public:
property bool Lighting {
        bool get();
        void set(bool value);
}
JScript public function get Lighting() : boolean
public function set Lighting(boolean);

Property Value

System.Boolean
Set to true to enable Direct3D lighting, or false to disable it.

This property is read/write. 

Remarks

The default value is true.

Only vertices that include a vertex normal are properly lit; vertices that do not contain a vertex normal employ a dot product of 0 in all lighting calculations.