GM:GetMotionBlurValues

From Garry's Mod
Jump to: navigation, search
 GM:GetMotionBlurValues( )

Contents

Description

Allows you to modify the Source Engine's motion blur shaders.

Arguments

number horizontal

The amount of horizontal blur.

Arguments

number vertical

The amount of vertical blur.

Arguments

number forward

The amount of forward/radial blur.

Arguments

number rotational

The amount of rotational blur.

Returns

number

New amount of horizontal blur.

Returns

number

New amount of vertical blur.

Returns

number

New amount of forward/radial blur.

Returns

number

New amount of rotational blur.

Examples

Example

Makes your forward/radial blur pulse.

local function GetNewMotionBlurValues( h, v, f, r )
    f = f * math.sin( CurTime() * 5 )
    return h, v, f, r
end
hook.Add( "GetMotionBlurValues", "GetNewMotionBlurValues", GetNewMotionBlurValues )

Output:

Your radial blur pulses.
Personal tools
Navigation