Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | elvisish |
Is it possible to scroll a texture on an isometric tile in a direction (say, Vector(1.0,-1.0) and have the cell look correct? I’ve tried it with this basic shader applied to a tile:
shader_type canvas_item;
uniform vec2 direction = vec2(0.0,0.0); uniform float speed = 1;
void fragment() { COLOR = texture(TEXTURE, UV + (direction * TIME * speed)); }
But it just causes the entire tile to warp in square shaped blocks, rather than just the isometric shape of the tile. Any way of doing this properly?
Without shader: Imgur: The magic of the Internet
With shader: Imgur: The magic of the Internet