G.DrawColorModify
From GMod Wiki
Revision as of 20:57, 3 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
DrawColorModify( Table table ) Where is this used? |
Description: | |
Used by the "ColorMod" Post-processing effect. It effects the screen color based on the values in the table that it's passed. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawColorModify]G.DrawColorModify [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Example Table, with default values that would normally be pulled from the "pp_colormod_*" convars:
tab= {} tab[ "$pp_colour_addr" ] = 0 tab[ "$pp_colour_addg" ] = 0 tab[ "$pp_colour_addb" ] = 0 tab[ "$pp_colour_brightness" ] = 0 tab[ "$pp_colour_contrast" ] = 1 tab[ "$pp_colour_colour" ] = 1 tab[ "$pp_colour_mulr" ] = 0 tab[ "$pp_colour_mulg" ] = 0 tab[ "$pp_colour_mulb" ] = 0
- You usually want to use this from the "RenderScreenspaceEffects" hooked like in the example.
See Also
Post Processing |
Hook: RenderScreenspaceEffects
Functions:
- DrawBloom -
- DrawColorModify -
- DrawMaterialOverlay -
- DrawMorph -
- DrawMotionBlur -
- DrawSharpen -
- DrawSobel -
- DrawSunBeams -
- DrawToyTown -
For usage of the Sandbox Post Processing menu, see Post Processing Menu.