render.OverrideBlend

From Garry's Mod
Jump to: navigation, search
 render.OverrideBlend( )

Contents

Description

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

See also render.OverrideAlphaWriteEnable.

NOTE

Doing surface library draw calls with alpha set to 0 is a no-op and won't have an effect.

Arguments

boolean enabled

true to enable, false to disable. No other arguments are required when disabling.

Arguments

number srcBlend

The source color blend function BLEND_ Enums. Determines how a rendered texture's final color should be calculated.

Arguments

number destBlend

The destination color blend function BLEND_ Enums.

Arguments

number blendFunc

The blend mode used for drawing the color layer BLENDFUNC_ Enums.

Arguments

number srcBlendAlpha=none

The source alpha blend function BLEND_ Enums. Determines how a rendered texture's final alpha should be calculated.

Arguments

number destBlendAlpha=none

The destination alpha blend function BLEND_ Enums.

Arguments

number blendFuncAlpha=none

The blend mode used for drawing the alpha layer BLENDFUNC_ Enums.
Personal tools
Navigation