G.DrawToyTown

From GMod Wiki

Jump to: navigation, search
Function
Syntax DrawToyTown( Integer Passes,Integer Height. )
Where is this used?
Description:
Used by the "ToyTown" Post-processing effect. Essentially it is the top and the bottom blending by drawing two quad at the top and the buttom of the screen and make them more fading.
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DrawToyTown]G.DrawToyTown [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will make your screen look more dramatic.
Used onNewerClient.png
Code
local function TheWildWestEffect()
    DrawToyTown( 10, 200)
end
hook.Add( "RenderScreenspaceEffects", "WesternShootingEffect", TheWildWestEffect )
OutputN/A


Additional Notes

See Also


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