ray marched <Caustics> new in drei 💫
beautiful swirls and patterns that appear when light passes through transmissive surfaces. 😍 this was a huge effort by ! react + threejs users just have to type:
<Caustics {...config}>
<Model />
demo: szj6p7.csb.app
Conversation
Replying to
btw yes it's great for static scenes but actually fast enough for 120fps runtime +moving objs 🫠
sandbox for the demo above: codesandbox.io/s/caustics-szj
a simpler playground: codesandbox.io/s/sandbox-caus
vanilla users go here: github.com/N8python/caust
drei docs:
1
1
26
Quote Tweet
Alright - got a caustics computation working by raytracing quads. 0-bounce caustics just use simple render targets (no rt) and run very smoothly. Support different ior and light area. These aren't faked - based directly on mesh curvature!
n8python.github.io/caustics/
#threejs #webgl
0:48
5.6K views
5
Show replies








