/URP-Iridescence-Example

🔮 An example of iridescence shader in URP.

Primary LanguageHLSLCreative Commons Zero v1.0 UniversalCC0-1.0

URP Iridescence Example

An example of iridescence shader extending the Lit shader in Unity URP.

Single-layered thin-film BRDF by Laurent Belcour and Pascal Barla's paper.

TODO

  • Single-layered thin-film (Soap bubble)
  • Multi-layered thin-film
  • Diffraction grating (CD-ROM)
  • Biological iridescence (Morpho butterfly wing scales)

I'll need to further study the underlying principle of these iridescences and find a way to modeling them that suitable for real-time rendering.

Requirement

  • Unity 2019.3.2f1 or higher
  • Universal Rendering Pipeline 7.4.1

Screenshots

Thin-film

Resources

  • Model - UnityBall by Unity Technologies
  • Skybox - TV Studio by Sergej Majboroda
  • Skybox - Spruit Sunrise by Greg Zaal

License

Code

CC0-1.0

All HDRIs from HDRIHaven.com

CC0