Garry's Mod Wiki

render.OverrideDepthEnable

  render.OverrideDepthEnable( boolean enable, boolean shouldWrite )

Description

Overrides the write behaviour of all next rendering operations towards the depth buffer.

Arguments

1 boolean enable
Enable or disable the override.
2 boolean shouldWrite
If the previous argument is true, sets whether the next rendering operations should write to the depth buffer or not. Has no effect if the previous argument is false.