RenderStateManager.Lighting Property

Language:

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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