Expand description
Continuous EMF spectral basis functions (Jakob-Hanika), closed-form Gaussian moments, and wave optics. Continuous EMF spectral basis functions (Jakob-Hanika), closed-form Gaussian moments, and wave optics.
Structs§
- Atmospheric
Cross Sections - Atmospheric and volumetric scattering and extinction cross-sections for a 4-lane hero packet.
- Jakob
Hanika Coeffs - 3-component polynomial spectral basis coefficients for Jakob & Hanika (2019) representation.
- SpectralG
Buffer0 Record - G-Buffer 0: 64-bit float allocation (c0, c1, c2 in f16, roughness in f16).
- SpectralG
Buffer1 Record - G-Buffer 1: 32-bit packed allocation (Octahedral Normal Nx, Ny, Metallic, MaterialFlags).
- Wyman
Cmf - Analytical Gaussian approximation of CIE 1931 CMFs (Wyman et al. 2013).
Constants§
- AGX_
INSET_ MATRIX - AgX / Manuka 20% linear gamut inset matrix for pre-compression desaturation.
- AGX_
OUTSET_ MATRIX - Inverse outset matrix restoring midtone saturation.
- GOLDEN_
RATIO_ CONJUGATE - LAMBDA_
MAX_ NM - LAMBDA_
MIN_ NM - LAMBDA_
SPAN_ NM
Functions§
- agx_
manuka_ gamut_ inset - Apply AgX / Manuka linear gamut inset toward white point.
- agx_
manuka_ gamut_ outset - Apply AgX / Manuka inverse outset restoring midtone saturation.
- burley_
diffusion_ weights_ simd4 - Christensen-Burley Normalized Diffusion BSSRDF weights for subsurface scattering.
- evaluate_
emf_ gaussian_ moment_ transport - Exact closed-form Gaussian moments light transport.
- evaluate_
spectral_ reflectance - Evaluate continuous spectral reflectance $R(\lambda) \in [0.0, 1.0]$ from basis coefficients.
- evaluate_
spectral_ reflectance_ simd4 - Vectorized 4-lane SIMD evaluation matching WGSL
vec4<f32>Hero Wavelength Sampling. - evaluate_
volumetric_ cross_ sections_ simd4 - Evaluate Rayleigh, Mie, and Ozone atmospheric cross-sections continuously across the 4 hero wavelengths.
- evaluate_
wyman_ cmf - Evaluate Wyman et al. (2013) analytical CMFs across the 4 hero wavelengths.
- generate_
hero_ wavelength_ packet - Generate 4 stratified hero wavelengths from blue noise and temporal frame index.
- normalize_
wavelength - Normalize wavelength $\lambda \in [380.0, 780.0]\text{ nm}$ to $u \in [0.0, 1.0]$.
- spectral_
to_ cie_ xyz_ simd4 - Integrate a 4-lane spectral radiance packet into linear CIE XYZ tristimulus values.
- thin_
film_ airy_ simd4 - Continuous thin-film wave interference via unpolarized Airy formulation over 4 hero wavelengths.