G.DrawBloom
From GMod Wiki
Function | |
Syntax |
DrawBloom( Float darken, Float multiply, Float sizeX, Float sizeY, Float passes, Float color, Float r, Float g, Float b ) Where is this used? |
Description: | |
Used by the "Bloom" post processing effect. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawBloom]G.DrawBloom [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.
- This won't work on graphics cards that don't support Pixel Shader 2.0.
- The color values( r, g, b ) should be between 0 and 1. Values larger than 1 will exaggerate the effect.
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.