光谱玻璃
Spectral Glass,Saqoosha,2026 年

正在布展…
它是怎么做的
- 第 1 步玻璃形状用 SDF(胶囊、棱镜、圆钻)在着色器里求交
- 第 2 步按 Cauchy + Abbe 数计算每个波长的折射率
- 第 3 步每像素采样 N 个波长并分层抖动,按波长加 Fresnel
- 第 4 步用 CIE 色彩匹配函数把光谱积分回 RGB
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Define glass objects as signed distance functions and ray-march them in a full-screen shader over a background texture. For each pixel, pick N wavelengths across 380-700nm with stratified jitter, compute each wavelength's index of refraction from a Cauchy equation parametrised by refractive index and Abbe number, and refract the view ray through entry and exit surfaces. Sample the background along each refracted ray, weight by that wavelength's CIE x/y/z matching values and Fresnel transmittance, then sum and convert XYZ to sRGB. Add temporal accumulation to hide the stratification noise.

