#Shaders. Random rotation that snaps each 90degrees

1 messages · Page 1 of 1 (latest)

stable egret
#

Hey to whoever reads this. I am making tiles which have to be with a randomized rotation but snapped at 90degrees (or 180, 270 and 360). Do you have any idea how this simple task can be achieved with a simple solution? I wasted 2 hours trying different stuff and could have done it by hand but that's not the point đŸ˜„

#

someone answered already and the solution is to multiply by 2*pi, not 360. I am not sure why it works but it does

thick vigil
#

You can also use tau as it is 2*pi.

echo kelp