Garry's Mod Wiki

g_colourmodify

Description

Allows modifying the coloring of the screenspace. A material with this shader exists at Material( "pp/colour" ), which is used by DrawColorModify.

Parameters

number pp_colour_addr
The add color's red value. 0 (black) means no change.
number pp_colour_addg
The add color's green value. 0 (black) means no change.
number pp_colour_addb
The add color's blue value. 0 (black) means no change.
number pp_colour_brightness
This value will be added to every pixel's R, G, and B values. 0 means no change.
number pp_colour_colour
The saturation value. Setting this to 0 will turn the image to grey-scale. 1 means no change.
number pp_colour_inv
Setting this to 1 will invert colors of the image. 0 means no change.
number pp_colour_contrast
Every pixel's R, G, and B values will each be multiplied by this number. 1 means no change.
number pp_colour_mulr
The multiply color's red value. 0 (black) means no change.
number pp_colour_mulg
The multiply color's green value. 0 (black) means no change.
number pp_colour_mulb
The multiply color's blue value. 0 (black) means no change.
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 render.GetSuperFPTex.