fixed vertex warp function not working as expected

This commit is contained in:
Valerie Wolfe 2024-04-11 17:23:01 -04:00
parent 7233ee05c3
commit d562cdffb2

View file

@ -7,6 +7,6 @@ vec4 vertex_warp() {
vec4 position = gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex;
vec2 nearest = round(position.xy / position.w * screen) / screen;
position.xy = nearest;
return (gl_ProjectionMatrix * gbufferModelView * position);
gl_Position = gl_ProjectionMatrix * gbufferModelView * position;
}