Garry's Mod Wiki

Revision Difference

render.OverrideBlend#513063

<function name="OverrideBlend" parent="render" type="libraryfunc">⤶ <description>⤶ Overrides the internal graphical functions used to determine the final color and alpha of a rendered texture.⤶ ⤶ See also <page>render.OverrideAlphaWriteEnable</page>.⤶ ⤶ <note>Doing <page>surface</page> draw calls with alpha set to 0 is a no-op and won't have an effect.</note>⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="enabled" type="boolean">true to enable, false to disable. No other arguments are required when disabling.</arg>⤶ <arg name="srcBlend" type="number">The source color blend function &lt;page&gt;BLEND&lt;/page&gt;. Determines how a rendered texture&#x27;s final color should be calculated.</arg>⤶ <arg name="destBlend" type="number">The destination color blend function &lt;page&gt;BLEND&lt;/page&gt;.</arg>⤶ <arg name="blendFunc" type="number">The blend mode used for drawing the color layer &lt;page&gt;BLENDFUNC&lt;/page&gt;.</arg>⤶ <arg name="srcBlendAlpha" type="number" default="none">The source alpha blend function &lt;page&gt;BLEND&lt;/page&gt;. Determines how a rendered texture&#x27;s final alpha should be calculated.</arg>⤶ <arg name="destBlendAlpha" type="number" default="none">The destination alpha blend function &lt;page&gt;BLEND&lt;/page&gt;.</arg>⤶ <arg name="blendFuncAlpha" type="number" default="none">The blend mode used for drawing the alpha layer &lt;page&gt;BLENDFUNC&lt;/page&gt;.</arg>⤶ </args>⤶ </function>⤶ ⤶