G.DrawSharpen
From GMod Wiki
Function | |
Syntax |
DrawSharpen( Float Contrast ,Float Offset ) Where is this used? |
Description: | |
Used by the "Sharpen" Post-processing effect. Mimics the Sharpness/Contrast dials on older TV sets. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawSharpen]G.DrawSharpen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This makes you want to adjust your TV Set. |
---|---|
Used on | |
Code | local function PUMPPPTEST() DrawSharpen(1.991, 5) end hook.Add( "RenderScreenspaceEffects", "RenderPOO", PUMPPPTEST ) |
Output | N/A |
Additional Notes
- You usually want to use this from the "RenderScreenspaceEffects" hooked like in the example.
- I think that the "Offset" argument controls how much each pixel "bleeds out".
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.