G.DrawToyTown
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawToyTown]G.DrawToyTown [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You usually want to use this from the "RenderScreenspaceEffects" hooked like in the example.
- The best way to test for Args is to play around with the sandbox implementation.
- The Float of the Height in-game is the screen's height in percent.
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.