RenderStateManager.Lighting Property

Language:

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

Enables or disables Microsoft® Direct3D® lighting.

Definition

Visual Basic .NET Public Property Lighting As Boolean
C# public bool Lighting { get; set; }
Managed C++ public: __property bool get_Lighting();
public: __property void set_Lighting(bool);
JScript .NET public function get Lighting() : boolean
public function set Lighting(boolean);

Property Value

System.Boolean . Set to true to enable Microsoft® 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.


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

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