G.DrawMotionBlur
From GMod Wiki
Function | |
Syntax |
DrawMotionBlur( Float Additive alpha,Float Draw alpha, Float Frame Update delay. ) Where is this used? |
Description: | |
Used by the "MotionBlur" Post-processing effect. Essentially it's inter-frame blending by drawing a quad of the old screen with alpha. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DrawMotionBlur]G.DrawMotionBlur [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This makes you drunk. |
---|---|
Used on | |
Code | local function TEST() DrawMotionBlur( 0.1, 0.79, 0.05) end hook.Add( "RenderScreenspaceEffects", "BlurTest", TEST ) |
Output | N/A |
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.
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.