Garry's Mod Wiki

render.OverrideBlendFunc

  render.OverrideBlendFunc( boolean enabled, number srcBlend, number destBlend, number srcBlendAlpha = nil, number destBlendAlpha = nil )

Description

We advise against using this. It may be changed or removed in a future update. Use render.OverrideBlend instead.

Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.

See also render.OverrideAlphaWriteEnable.

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

Arguments

1 boolean enabled
true to enable, false to disable. No other arguments are required when disabling.
2 number srcBlend
The source color blend function BLEND enum. Determines how a rendered texture's final color should be calculated.
3 number destBlend
4 number srcBlendAlpha = nil
The source alpha blend function BLEND enum. Determines how a rendered texture's final alpha should be calculated.
5 number destBlendAlpha = nil