Advertisement
Ancurio

tilemapvx no animation

Jul 26th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.86 KB | None | 0 0
  1. diff --git a/shader/tilemapvx.vert b/shader/tilemapvx.vert
  2. index b744d21..b379c37 100644
  3. --- a/shader/tilemapvx.vert
  4. +++ b/shader/tilemapvx.vert
  5. @@ -18,15 +18,15 @@ const float atAreaCW = 4.0*32.0;
  6.  void main()
  7.  {
  8.     vec2 tex = texCoord;
  9. -   lowp float pred;
  10. +// lowp float pred;
  11.  
  12.     /* Type A autotiles shift horizontally */
  13. -   pred = float(tex.x <= atAreaA.x && tex.y <= atAreaA.y);
  14. -   tex.x += aniOffset.x * pred;
  15. +// pred = float(tex.x <= atAreaA.x && tex.y <= atAreaA.y);
  16. +// tex.x += aniOffset.x * pred;
  17.  
  18.     /* Type C autotiles shift vertically */
  19. -   pred = float(tex.x >= atAreaCX && tex.x <= (atAreaCX+atAreaCW) && tex.y <= atAreaA.y);
  20. -   tex.y += aniOffset.y * pred;
  21. +// pred = float(tex.x >= atAreaCX && tex.x <= (atAreaCX+atAreaCW) && tex.y <= atAreaA.y);
  22. +// tex.y += aniOffset.y * pred;
  23.  
  24.     gl_Position = projMat * vec4(position + translation, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement