fixed vertex warp function not working as expected
This commit is contained in:
parent
b88eafca56
commit
2289e55754
1 changed files with 1 additions and 1 deletions
|
@ -7,6 +7,6 @@ vec4 vertex_warp() {
|
||||||
vec4 position = gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex;
|
vec4 position = gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex;
|
||||||
vec2 nearest = round(position.xy / position.w * screen) / screen;
|
vec2 nearest = round(position.xy / position.w * screen) / screen;
|
||||||
position.xy = nearest;
|
position.xy = nearest;
|
||||||
return (gl_ProjectionMatrix * gbufferModelView * position);
|
gl_Position = gl_ProjectionMatrix * gbufferModelView * position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue