Hacker News new | ask | show | jobs
by openrisk 515 days ago
Fun thing: in relativity u,v are typical variable names used for a really funky coordinate transformation that mixes space and time, sometimes called Penrose coordinates [1]. So when I saw this:

> uv.x = uv.x + sin(time + uv.x * 50.0) * 0.01;

> uv.y = uv.y + sin(time + uv.y * 50.0) * 0.01;

I thought, wow, what on Earth is going on here? But no, it turns out that its not that psychedelic. They could have used p,q or any other variable pair but its still quite interesting geometrically [2].

[1] https://en.wikipedia.org/wiki/Penrose_diagram

[2] https://en.wikipedia.org/wiki/UV_mapping