Garry's Mod Wiki


  render.OverrideAlphaWriteEnable( boolean enable, boolean shouldWrite )


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

See also render.OverrideBlend.

Doing surface draw calls with alpha set to 0 is a no-op and will never have any effect.


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


Shows how you can use alpha channel with render targets.