Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/shader/tilemapvx.vert b/shader/tilemapvx.vert
- index b744d21..b379c37 100644
- --- a/shader/tilemapvx.vert
- +++ b/shader/tilemapvx.vert
- @@ -18,15 +18,15 @@ const float atAreaCW = 4.0*32.0;
- void main()
- {
- vec2 tex = texCoord;
- - lowp float pred;
- +// lowp float pred;
- /* Type A autotiles shift horizontally */
- - pred = float(tex.x <= atAreaA.x && tex.y <= atAreaA.y);
- - tex.x += aniOffset.x * pred;
- +// pred = float(tex.x <= atAreaA.x && tex.y <= atAreaA.y);
- +// tex.x += aniOffset.x * pred;
- /* Type C autotiles shift vertically */
- - pred = float(tex.x >= atAreaCX && tex.x <= (atAreaCX+atAreaCW) && tex.y <= atAreaA.y);
- - tex.y += aniOffset.y * pred;
- +// pred = float(tex.x >= atAreaCX && tex.x <= (atAreaCX+atAreaCW) && tex.y <= atAreaA.y);
- +// tex.y += aniOffset.y * pred;
- gl_Position = projMat * vec4(position + translation, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement