fixed a syntax error in vertex warp module
This commit is contained in:
parent
d37aadeef2
commit
6024410f12
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ vec4 vertex_warp() {
|
||||||
float mod = pixelSize * vWarp;
|
float mod = pixelSize * vWarp;
|
||||||
vec2 screen = vec2(viewWidth / mod, viewHeight / mod);
|
vec2 screen = vec2(viewWidth / mod, viewHeight / mod);
|
||||||
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);
|
return (gl_ProjectionMatrix * gbufferModelView * position);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue