render/OverrideBlend

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Func
 
{{Func
|Description={{NextUpdate}}
+
|Description=Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.
 
+
Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.
+
  
 
See also {{LibraryFunction|render|OverrideAlphaWriteEnable}}.
 
See also {{LibraryFunction|render|OverrideAlphaWriteEnable}}.
  
{{Note|Doing {{Lib|surface}} draw calls with alpha set to 0 is a no-op and will never have any effect.}}
+
{{Note|Doing {{Lib|surface}} draw calls with alpha set to 0 is a no-op and won't have an effect.}}
 
|Realm=Client
 
|Realm=Client
 
|IsClass=No
 
|IsClass=No
Line 23: Line 21:
 
|type=number
 
|type=number
 
|name=destBlend
 
|name=destBlend
 +
|desc=The destination color blend function {{Enum|BLEND}}.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=blendFunc
 
|name=blendFunc
|desc=A {{Enum|BLENDFUNC}}
+
|desc=The blend mode used for drawing the color layer {{Enum|BLENDFUNC}}.
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 38: Line 37:
 
|type=number
 
|type=number
 
|name=destBlendAlpha
 
|name=destBlendAlpha
 +
|desc=The destination alpha blend function {{Enum|BLEND}}.
 
|default=none
 
|default=none
 
}}
 
}}
Line 43: Line 43:
 
|type=number
 
|type=number
 
|name=blendFuncAlpha
 
|name=blendFuncAlpha
|desc=A {{Enum|BLENDFUNC}}
+
|desc=The blend mode used for drawing the alpha layer {{Enum|BLENDFUNC}}.
 
|default=none
 
|default=none
 
}}
 
}}

Latest revision as of 23:36, 31 May 2018

 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