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 Enums/BLEND. Determines how a rendered texture's final color should be calculated.
3 number destBlend
4 number srcBlendAlpha = nil
The source alpha blend function Enums/BLEND. Determines how a rendered texture's final alpha should be calculated.
5 number destBlendAlpha = nil

Page Links


Special Pages


Wikis

?

Render Time: 50ms

Session 0
DB GetPage 5
Generate Html 23
SaveChanges 8
Render Body 0
Render Sidebar 11