CD-ROM Shader: Diffraction Grating (Part 1) (Patreon)
Published:
2017-09-13 12:35:32
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
This post will guide you through the creation of a shader that reproduces the rainbow reflections that can be seen on CD-ROMs and DVDs.
- Part 6. CD-ROM Shader: Diffraction Grating (Part 1)
This has been the longer series so far; it has been a long journey, but finally there's some shader code!
You can read the rest of the series here:
- Part 1. The Nature of Light
- Part 2. Improving the Rainbow (Part 1)
- Part 3. Improving the Rainbow (Part 2)
- Part 4. Understanding Diffraction Grating
- Part 5. The Mathematics of Diffraction Grating
- Part 6. CD-ROM Shader: Diffraction Grating (Part 1)
- Part 7. CD-ROM Shader: Diffraction Grating (Part 2)
- Part 8. Iridescence on Mobile
You can download the Unity project for the CD-ROM shader here ($25+ patrons only).
As always, thank you for your support. ♥
Files
Previews only