Coding Adventure: Ray-Tracing Glass @SebastianLague
Coding Adventure: Ray-Tracing Glass  @SebastianLague
Uploaded August 2025 | Updated September 2026, 3 weeks ago
Let's do some more ray-tracer coding and see if we can get it to render glass, and rainbows, and more!

Support my work (and get early access to new videos and source code) on Patreon: patreon.com/SebastianLague

Source code: github.com/SebLague/Ray-Tracing

Credits:
* Music: github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/GlassAndCaustics.txt
* Frosted glass reference: youtu.be/fWAAOWTV1K0?si=KL-EnzSZ6mLVfuqn

Chapters:
00:00 Intro
02:02 Glass
04:58 Glass Bugs
09:04 NaNs
11:51 Absorption
13:49 Frosted Glass
15:44 Glass Ball Test
21:14 Stack versus Stoch
22:55 Visualizing Caustics
25:42 Cardioid Caustic
27:04 Water Caustic
32:24 Rainbow
36:01 Spectral Experiment
40:46 Outro
Coding Adventure: Ray-Tracing GlassProcedural Landmass Generation (E01: Introduction)Blender Character Creation (E06: Run animation)Field of view visualisation (E03: stencil shader)Procedural Landmass Generation (E07: Endless terrain)Unity Create a Game Series (E23. Audio pt.2)Unity Create a Game Series (E17. weapon variation)INTEGRATION 03 - Making an RPG in Unity (E12)Unity Create a Game Series (E21. Guns and UI)Coding Adventure: Software RasterizerI Made a Game in 4 Days (for the GMTK jam)Introduction to Game Development (E04: writing code)
Sebastian Lague |

Coding Adventure: Ray-Tracing Glass

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER