Skip to main content
AmigoFish

Coding Adventure: Ray-Tracing Glass

From Sebastian Lague · · 41 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

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: https://www.patreon.com/SebastianLague

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

Credits: * Music: https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/GlassAndCaustics.txt * Frosted glass reference: https://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

Back to Sebastian Lague · Report a problem