Advertisement
Phlimy

Untitled

May 5th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local res = inputs[1]
  2. local t = inputs[2]
  3. local uv = div2(coord, res)
  4. uv.x = uv.x * res.x/res.y--*2/3
  5. uv.x = uv.x - res.x/res.y/2--*2/3/2
  6. uv.y = uv.y - 0.5
  7. local m = getRotMat2(t)
  8. local uv = mat2mulvec2(m, sub2(uv, vec2(0, 0)))
  9. return vec4((uv.x % 0.4)*5*(sin(t)+1)/2, (uv.y % 0.2)*5*(cos(t)+1)/2, 0, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement