Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

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

0 comments

fidotron

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities