Garry's Mod Wiki

DrawColorModify

void DrawColorModify( table modifyParameters )

Description

Draws the Color Modify shader, which can be used to adjust colors on screen.

Arguments

1 table modifyParameters
Color modification parameters. See g_colourmodify and the example below. Note that if you leave out a field, it will retain its last value which may have changed if another caller uses this function.

Example

Draws color modify with bright yellow and green colors.

local tab = { [ "$pp_colour_addr" ] = 0.02, [ "$pp_colour_addg" ] = 0.02, [ "$pp_colour_addb" ] = 0, [ "$pp_colour_brightness" ] = 0, [ "$pp_colour_contrast" ] = 1, [ "$pp_colour_colour" ] = 3, [ "$pp_colour_mulr" ] = 0, [ "$pp_colour_mulg" ] = 0.02, [ "$pp_colour_mulb" ] = 0 } hook.Add( "RenderScreenspaceEffects", "color_modify_example", function() DrawColorModify( tab ) end )

Page Links


Special Pages


Wikis

?

Render Time: 50ms

Session 0
DB GetPage 6
Generate Html 1
SaveChanges 27
Render Body 0
Render Sidebar 13