G.DrawMotionBlur

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DrawMotionBlur]G.DrawMotionBlur [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis makes you drunk.
Used onNewerClient.png
Code
local function TEST()
	DrawMotionBlur( 0.1, 0.79, 0.05)
end
hook.Add( "RenderScreenspaceEffects", "BlurTest", TEST )
 
OutputN/A


Additional Notes

See Also


Color wheel.pngPost 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.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox