Garry's Mod Wiki

render.OverrideColorWriteEnable

  render.OverrideColorWriteEnable( boolean enable, boolean shouldWrite )

Description

Overrides the write behaviour of all next rendering operations towards the color channel of the current render target.

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 color channel or not. Has no effect if the previous argument is false.