render/OverrideBlend

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(f)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description={{NextUpdate}}{{Stub}}
+
|Description={{NextUpdate}}
|Realm=Shared
+
 
 +
Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.
 +
 
 +
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.}}
 +
|Realm=Client
 
|IsClass=No
 
|IsClass=No
 +
}}
 +
{{Arg
 +
|type=boolean
 +
|name=enabled
 +
|desc=true to enable, false to disable. No other arguments are required when disabling.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=srcBlend
 +
|desc=The source color blend function {{Enum|BLEND}}. Determines how a rendered texture's final color should be calculated.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=destBlend
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=blendFunc
 +
|desc=A {{Enum|BLENDFUNC}}
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=srcBlendAlpha
 +
|desc=The source alpha blend function {{Enum|BLEND}}. Determines how a rendered texture's final alpha should be calculated.
 +
|default=none
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=destBlendAlpha
 +
|default=none
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=blendFuncAlpha
 +
|desc=A {{Enum|BLENDFUNC}}
 +
|default=none
 
}}
 
}}

Revision as of 16:07, 24 February 2018

 render.OverrideBlend( )

Contents

Description

Next Update Change

This feature is only available in the next update.

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 will never have any 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

Arguments

number blendFunc

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

Arguments

number blendFuncAlpha=none

Personal tools
Navigation