Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local res = inputs[1]
- local t = inputs[2]
- local uv = div2(coord, res)
- uv.x = uv.x * res.x/res.y--*2/3
- uv.x = uv.x - res.x/res.y/2--*2/3/2
- uv.y = uv.y - 0.5
- local m = getRotMat2(t)
- local uv = mat2mulvec2(m, sub2(uv, vec2(0, 0)))
- 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