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

pp_colour_addr [number]

The add color's red value. 0 (black) means no change.

pp_colour_addg [number]

The add color's green value. 0 (black) means no change.

pp_colour_addb [number]

The add color's blue value. 0 (black) means no change.

pp_colour_brightness [number]

This value will be added to every pixel's R, G, and B values. 0 means no change.

pp_colour_colour [number]

The saturation value. Setting this to 0 will turn the image to grey-scale. 1 means no change.

pp_colour_contrast [number]

Every pixel's R, G, and B values will each be multiplied by this number. 1 means no change.

pp_colour_mulr [number]

The multiply color's red value. 0 (black) means no change.

pp_colour_mulg [number]

The multiply color's green value. 0 (black) means no change.

pp_colour_mulb [number]

The multiply color's blue value. 0 (black) means no change.

fbtexture [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 render.GetSuperFPTex.

Page Links


Special Pages


Wikis

?

Render Time: 42ms

DB GetPage 4
Generate Html 15
SaveChanges (1) 9
Render Body 0
Render Sidebar 12