Gamemode.RenderScreenspaceEffects

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameRenderScreenspaceEffects
SyntaxGM:RenderScreenspaceEffects( )
DescriptionUsed by most Post-processing effects, see them for proper examples.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.RenderScreenspaceEffects]Gamemode.RenderScreenspaceEffects [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDraws every single post processing effect on your screen.
Used onNewerClient.png
Code
function PostProcess()
 
    local tab = {}
	tab[ "$pp_colour_addr" ] = 250
	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" ] = 1
        tab[ "$pp_colour_mulb" ] = 1 
 
    DrawColorModify( tab )
 
    DrawBloom( 0, 0.75, 3, 3, 2, 3, 255, 255, 255 )
    DrawMaterialOverlay( "effects/combine_binocoverlay.vmt", 0.1 )
    DrawMotionBlur( 0.1, 0.79, 0.05 )
    DrawSharpen( 1.991, 5 )
    DrawSunbeams( 0.5 , 2, 5, 0, 0 )
 
end
 
hook.Add( "RenderScreenspaceEffects", "ClusterFuck", PostProcess )
OutputN/A


Additional Notes


Color wheel.pngPost 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.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox