RenderStateManager.Lighting Property |
Language: |
Enables or disables Microsoft® Direct3D® lighting.
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);
System.Boolean . Set to true to enable Microsoft® Direct3D® lighting, or false to disable it.
This property is read/write.
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.
Feedback? Please provide us with your comments on this topic.