Description
Allows you to modify the Source Engine's motion blur shaders.
Arguments
1 number horizontalThe amount of horizontal blur.
2 number verticalThe amount of vertical blur.
3 number forwardThe amount of forward/radial blur.
4 number rotationalThe amount of rotational blur.
Returns
1 number New amount of horizontal blur.
2 number New amount of vertical blur.
3 number New amount of forward/radial blur.
4 number New amount of rotational blur.
Example
Makes your forward/radial blur pulse.
hook.
Add(
"GetMotionBlurValues",
"GetNewMotionBlurValues",
function( horizontal, vertical, forward, rotational )
forward
= forward
* math.
sin(
CurTime()
* 5 )
return horizontal, vertical, forward, rotational
end )
Output: Your radial blur pulses.