Pass:setDepthWrite

Edit

Sets 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

NameTypeDescription
writeboolean Whether the depth buffer should be affected by draws.

Returns

Nothing

Notes

The default depth write is true.

See also