Garry's Mod Wiki

Revision Difference

Shaders/g_colourmodify#517103

<cat>shader</cat> <shader> <description>Allows modifying the coloring of the screenspace. A material with this shader exists at <page>Global.Material</page>( "pp/colour" ), which is used by <page>Global.DrawColorModify</page>.</description> <parameters>{{ShaderParameter|number|pp_colour_addr|The add color's red value. 0 (black) means no change.</parameters>⤶ <parameters>⤶ <item name="pp_colour_addr" type="number">The add color's red value. 0 (black) means no change.</item>⤶ ⤶ <item name="pp_colour_addg" type="number">The add color's green value. 0 (black) means no change.</item>⤶ ⤶ <item name="pp_colour_addb" type="number">The add color's blue value. 0 (black) means no change.</item>⤶ ⤶ <item name="pp_colour_brightness" type="number">This value will be added to every pixel's R, G, and B values. 0 means no change.</item>⤶ ⤶ <item name="pp_colour_colour" type="number">The saturation value. Setting this to 0 will turn the image to grey-scale. 1 means no change.</item>⤶ ⤶ <item name="pp_colour_contrast" type="number">Every pixel's R, G, and B values will each be multiplied by this number. 1 means no change.</item>⤶ ⤶ <item name="pp_colour_mulr" type="number">The multiply color's red value. 0 (black) means no change.</item>⤶ ⤶ <item name="pp_colour_mulg" type="number">The multiply color's green value. 0 (black) means no change.</item>⤶ ⤶ <item name="pp_colour_mulb" type="number">The multiply color's blue value. 0 (black) means no change.</item>⤶ ⤶ <item name="fbtexture" type="ITexture">The texture to apply the color modifications to. It is expected, but not required, that the material will be drawn onto this texture.⤶ ⤶ "fbtexture" most likely stands for "frame buffer texture", but this works with any texture, including <page>render.GetSuperFPTex</page>.</item>⤶ </parameters>⤶ </shader> ⤶ ⤶ {{ShaderParameter|number|pp_colour_addg|The add color's green value. 0 (black) means no change.}}⤶ {{ShaderParameter|number|pp_colour_addb|The add color's blue value. 0 (black) means no change.}}⤶ {{ShaderParameter|number|pp_colour_brightness|This value will be added to every pixel's R, G, and B values. 0 means no change.}}⤶ {{ShaderParameter|number|pp_colour_colour|The saturation value. Setting this to 0 will turn the image to grey-scale. 1 means no change.}}⤶ {{ShaderParameter|number|pp_colour_contrast|Every pixel's R, G, and B values will each be multiplied by this number. 1 means no change.}}⤶ {{ShaderParameter|number|pp_colour_mulr|The multiply color's red value. 0 (black) means no change.}}⤶ {{ShaderParameter|number|pp_colour_mulg|The multiply color's green value. 0 (black) means no change.}}⤶ {{ShaderParameter|number|pp_colour_mulb|The multiply color's blue value. 0 (black) means no change.}}⤶ {{ShaderParameter|ITexture|fbtexture|The texture to apply the color modifications to. It is expected, but not required, that the material will be drawn onto this texture.⤶ ⤶ "fbtexture" most likely stands for "frame buffer texture", but this works with any texture, including <page>render.GetSuperFPTex</page>.}}⤶ }}