G.DrawSobel
From GMod Wiki
Function | |
Syntax |
DrawSobel( Float Threshold ) Where is this used? |
Description: | |
Applies the sobel effect | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawSobel]G.DrawSobel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Draws the Sobel effect on a players screen. |
---|---|
Used on | |
Code | function CreateSobel() DrawSobel( 0.5 ) end hook.Add( "RenderScreenspaceEffects", "CreateSobel", CreateSobel ) |
Output | N/A |
Additional Notes
- This should be used in the RenderScreenspaceEffects hook.
- A Threshold of 1 doesn't do the effect but a Threshold of 0 makes the screen black; Use a value between 1 and 0
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.