fixed a syntax error in vertex warp module

This commit is contained in:
Valerie Wolfe 2024-04-11 17:08:30 -04:00
parent 54495eb53f
commit 6339df4ed5

View file

@ -5,7 +5,7 @@ vec4 vertex_warp() {
float mod = pixelSize * vWarp;
vec2 screen = vec2(viewWidth / mod, viewHeight / mod);
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;
return (gl_ProjectionMatrix * gbufferModelView * position);
}