Skip to content

Commit aa367a9

Browse files
committed
haha i did that wrong '"g;G:sad:
1 parent 8dd75fe commit aa367a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shaders/sprite.vert.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ void main() {
8585
float x = a_position.x;
8686
float y = a_position.y;
8787
#ifdef ENABLE_horizontal_shear
88-
if (y < 0.0)
88+
if (a_position.y < 0.0)
8989
x += u_horizontalShear;
9090
#endif
9191
#ifdef ENABLE_vertical_shear
92-
if (x < 0.0)
92+
if (a_position.x < 0.0)
9393
y += u_verticalShear;
9494
#endif
9595
gl_Position = u_projectionMatrix * u_modelMatrix * vec4(x,y, 0, 1);

0 commit comments

Comments
 (0)