4 ms·
Show HN: Planar Reflections in WebGL
- erkaman 10y agoWhoops, wrong link. Here is the correct one: https://mikolalysenko.github.io/regl/www/gallery/planar-reflection.js.html https://mikolalysenko.github.io/regl/www/gallery/planar-refl... In this demo, I render reflections in a plane using a trick with the stencil buffer. I provide a video(https://www.youtube.com/watch?v=FUNAcjJHo8U https://www.youtube.com/watch?v=FUNAcjJHo8U), in case the demo won't run. Those who are curious can find the implementation details described in the top of the source code: https://github.com/mikolalysenko/regl/blob/gh-pages/example/planar-reflection.js https://github.com/mikolalysenko/regl/blob/gh-pages/example/...