Comment by fidotron
7 days ago
Refraction effects like that require a surface normal, even inferred from something like a bump map, or the result of a blur filter used as a bump map. I'm not aware of any CSS filter that could take a normal and do the appropriate ray redirection.
In raw shader code it's verging on trivial, like old school environment mapping. https://en.wikipedia.org/wiki/Reflection_mapping
No comments yet
Contribute on Hacker News ↗