projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove junk
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
motion_vectors_fs.glsl
1
layout (location = 1) out vec2 oMotionVec;
2
3
in vec3 aMotionVec0;
4
in vec3 aMotionVec1;
5
6
void compute_motion_vectors()
7
{
8
// Write motion vectors
9
vec2 vmotion0 = aMotionVec0.xy / aMotionVec0.z;
10
vec2 vmotion1 = aMotionVec1.xy / aMotionVec1.z;
11
oMotionVec = vmotion1-vmotion0;
12
}