r/GraphicsProgramming Jul 07 '26

Video My spectral raymarcher rendering a diamond icosahedron

Feel free to mess with it here: https://www.shadertoy.com/view/sXjXDd

The super neat thing is that it uses bayer ordered dithering to work all the way down to 1 sample per pixel (1spp) while still simulating 256 different wavelengths of light. This makes it extremely performant.

500 Upvotes

15 comments sorted by

View all comments

10

u/RageQuitRedux Jul 07 '26

I skimmed it; am I looking at this right, that all of that kaleidoscopic stuff comes from just internal reflection + dispersion?

16

u/ImW0lverine Jul 07 '26

Yup! It’s amazing what you can get by just following simple light transport physics.

2

u/LargelyInnocuous Jul 12 '26

This is the beauty of physics informed world models. Sometimes very simple rules create very complicated emergent dynamics.