fixed a syntax error in vertex warp module
This commit is contained in:
parent
54495eb53f
commit
6339df4ed5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue