Garry's Mod Wiki

DrawMotionBlur

  DrawMotionBlur( number AddAlpha, number DrawAlpha, number Delay )

Description

Creates a motion blur effect by drawing your screen multiple times.

Arguments

1 number AddAlpha
How much alpha to change per frame.
2 number DrawAlpha
How much alpha the frames will have. A value of 0 will not render the motion blur effect.
3 number Delay
Determines the amount of time between frames to capture.

Example

Creates a motion blur effect.

hook.Add( "RenderScreenspaceEffects", "MotionBlurEffect", function() DrawMotionBlur( 0.4, 0.8, 0.01 ) end )