Garry's Mod Wiki

Garry's Mod Wiki

  render.OverrideAlphaWriteEnable( boolean enable, boolean shouldWrite )

Description

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.

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

Example

Shows how you can use alpha channel with render targets.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...