RenderStateManager.ZBufferWriteEnable Property |
Language: |
Enables or disables writing to the depth buffer.
Visual Basic .NET Public Property ZBufferWriteEnable As Boolean C# public bool ZBufferWriteEnable { get; set; } Managed C++ public: __property bool get_ZBufferWriteEnable();
public: __property void set_ZBufferWriteEnable(bool);JScript .NET public function get ZBufferWriteEnable() : boolean
public function set ZBufferWriteEnable(boolean);
System.Boolean . Set to true to enable writing to the depth buffer, or false to disable it.
This property is read/write.
The default value is true.
This member enables an application to prevent the system from updating the depth buffer with new depth values.
If false, depth comparisons are still made according to the render state ZBufferFunction, assuming that depth buffering is taking place, but depth values are not written to the buffer.
Feedback? Please provide us with your comments on this topic.