blob: bb8d42d5923b73da4e84435aea1e5e801b474885 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* Output two 2D screen space velocity vector from object motion.
* There is a separate output for view and camera vectors.
* Camera vectors are used for reprojections and view vectors are used for motion blur fx.
* xy: Previous position > Current position
* zw: Current position > Next position
**/
#pragma BLENDER_REQUIRE(common_math_lib.glsl)
#pragma BLENDER_REQUIRE(eevee_velocity_lib.glsl)
void main(void)
{
compute_velocity(interp.P_prev,
interp.P,
interp.P_next,
cam_prev,
cam_curr,
cam_next,
out_velocity_camera,
out_velocity_view);
}
|