Thin-film iridescence
Models soap-bubble and oil-slick colours by evaluating interference of light reflected from the top and bottom of a thin dielectric film, folded into the Fresnel term of a microfacet BRDF. Belcour and Barla give a fast, closed-form spectral approximation.
In the family Materials, BRDFs & texturing, layered BRDF
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | material.iridescence = 1 (MeshPhysicalMaterial) docs |
| Babylon.js 9.38.0 | Built in | pbrMaterial.iridescence.isEnabled = true (PBRIridescenceConfiguration) docs |
| Godot 4.7 | None found | |
| Unity | Built in | HDRP Lit > Material Type = Iridescence docs HDRP only (Lit Iridescence and StackLit). |
| Unreal 5.7 | Built in | Substrate Slab > Thin Film / Substrate Thin-Film material function docs Substrate materials only. |
| Blender 5.2 | Built in | Principled BSDF > Thin Film (Thickness, IOR) docs Cycles only. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Light striking a thin film of thickness d and index n reflects off both interfaces; the two waves differ by an optical path delay of 2 n d cos(theta_t) and interfere, strengthening or cancelling wavelengths depending on angle and thickness. Belcour and Barla treat the film as a replacement Fresnel F(theta, d, eta1, eta2, eta3, kappa3) inside a microfacet model, computing it per wavelength via the Airy summation, then compress the result into a Fourier-domain sensitivity-curve approximation that avoids per-wavelength loops: only a few terms per RGB channel are evaluated. The film thickness can be a texture, giving swirled colours, and the base can be dielectric or conductor. Three.js exposes iridescence, IOR and thickness range in MeshPhysicalMaterial, and glTF has KHR_materials_iridescence.
When to choose it
Reach for it when
- soap bubble or oil slick colours look wrong
- beetle shell or anodised metal needs rainbow sheen
- colour shifts with viewing angle on coated surfaces
- need interference colours in a pbr shader
- titanium or coated lens tint
Choose it for soap bubbles, oil on water, beetle shells, anodised metal, titanium oxide and coated lenses. Prefer baked colour ramps for stylised iridescence (Toon / cel shading with lighting ramps-style looks) where physical accuracy is not required. Prefer Clearcoat layer for colourless coatings and OpenPBR Surface thin-film layer for interchange.
Field marks
- Hue shifts from RGB-only approximation fail to match spectral renderers for thick films
- Thickness texture mip filtering averages interference colours, producing muddy greys at distance
- Interaction with IBL is approximate; pre-filtered probes need an iridescence-aware Fresnel or reflections look wrong
- Rapid angular variation aliases without specular antialiasing
Presets
Soap-bubble style iridescence
{
"color": "#ffffff",
"roughness": 0.05,
"metalness": 0,
"iridescence": 1,
"iridescenceIOR": 1.3,
"transmission": 0.9,
"thickness": 0.5
}Attribution: written for this index; sensible defaults, not measured
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| iridescence-soap-film | Tesla T4 1920x1080 | 2.47× baseline (light) · 0.081 ms / 0.084 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| iridescence-soap-film | NVIDIA L4 1920x1080 | 2.16× baseline (light) · 0.034 ms / 0.035 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| iridescence-soap-film | NVIDIA A100-SXM4-40GB 1920x1080 | 1.48× baseline (feather) · 0.043 ms / 0.043 ms · 1.9× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Cook-Torrance microfacet BRDF, Unidirectional Path Tracing, Multi-Order Tangent-Frame Diffraction Grating & Spectral Replay Hologram, Continuous-Wavelength Hero and Single-Wavelength Spectral Dispersion; cited by Spectral upsampling with sigmoid polynomials.
Crosses
- Chladni-vibrated iridescent soap film: Acoustic standing waves on a circular membrane stir a viscous soap film into swirling interference bands. Modal Bessel eigenmodes push fluid away from antinodes toward nodal rings, sculpting nanometre-scale film thickness that flashes across the spectrum under thin-film interference.
Sources
- primaryLaurent Belcour, Pascal Barla (2017). A practical extension to microfacet theory for the modeling of varying iridescence. ACM Transactions on Graphics.Verified via crossref · 2026-11-29doi:10.1145/3072959.3073620
- implementationmrdoob (2010). mrdoob/three.js. JavaScript 3D Library.GitHub API · license MIT · 2026-11-29
- implementationGökay Aydoğan (2026). gokayfem/glsl-studies. 454 procedural graphics studies in GLSL ES 3.00 for WebGL2, from woven cloth and animal fur to glacial terrain and atmospheric optics. Each study includes shader source and a rendered preview.GitHub API · license MIT · 2026-11-30