Pass:setDepthWrite
EditSets whether draws write to the depth buffer. When a pixel is drawn, if depth writes are enabled and the pixel passes the depth test, the depth buffer will be updated with the pixel's depth value.
Pass:setDepthWrite(write)
Arguments
Name | Type | Description |
write | boolean | Whether the depth buffer should be affected by draws. |
Returns
Nothing
Notes
The default depth write is true
.