Expand description
Physically-based and stylized cinematic lighting evaluation. Physically-based and stylized cinematic lighting evaluation.
Modules§
- environment_
lighting - Portable bounded environment-probe evaluation and fallback policy.
Structs§
- Directional
Light - Directional light source (sun/moon) defined in lux (lm/m^2).
- Environment
Lighting Gpu - Portable bounded environment-probe evaluation and fallback policy. Bounded, texture-independent environment lighting binding for a material.
- Environment
Lighting Result - Portable bounded environment-probe evaluation and fallback policy. Result of one environment evaluation.
- Environment
Probe - Portable bounded environment-probe evaluation and fallback policy. A caller-owned, prefiltered environment probe.
- Environment
Probe Gpu - Portable bounded environment-probe evaluation and fallback policy. One fixed-layout probe record consumed by the viewport material shader.
- Environment
Probe Set - Portable bounded environment-probe evaluation and fallback policy. Fixed-capacity probe storage. Construction is cold; evaluation is a bounded read-only path.
- Point
Light - Point light source defined in luminous flux (lumens).
- Spot
Light - Spot light source with smooth inner/outer angular falloff.
- Stylized
Lighting Params - Authored stylized art direction parameters sharing standard PBR geometry and materials.
- Surface
Parameters - Surface parameters for evaluation.
Constants§
- ENVIRONMENT_
LIGHTING_ GPU_ SIZE - Portable bounded environment-probe evaluation and fallback policy. Fixed GPU contract size for one material’s environment lighting binding.
- ENVIRONMENT_
SPECULAR_ LEVELS - Portable bounded environment-probe evaluation and fallback policy. Number of roughness-filtered specular levels stored per probe.
- MAX_
ENVIRONMENT_ PROBES - Portable bounded environment-probe evaluation and fallback policy. Maximum number of probes visited by one environment-lighting evaluation.
- MAX_
LOCAL_ LIGHTS - Maximum number of local (point/spot) lights evaluated per fragment/cluster.
- PCF_
3X3_ OFFSETS - Percentage-Closer Filtering (3x3 kernel) oracle weights for shadow maps.
Functions§
- apply_
normal_ offset_ bias - Normal-offset bias world position to prevent shadow acne and self-shadowing.
- distance_
attenuation - Smooth windowed inverse-square distance attenuation.
- distribution_
ggx - Trowbridge-Reitz GGX Normal Distribution Function.
- dot3
Default::dot3.- evaluate_
environment_ lighting - Portable bounded environment-probe evaluation and fallback policy. Evaluate bounded irradiance/specular probe lighting with an explicit direct-light fallback.
- evaluate_
fragment_ radiance - Evaluate physical or stylized fragment radiance in linear color space.
- evaluate_
rim_ lighting - Evaluate Fresnel rim / silhouette contour lighting.
- evaluate_
stylized_ diffuse - Evaluate stylized quantized diffuse factor from N.L.
- fresnel_
schlick - Schlick approximation for Fresnel reflection.
- normalize3
Default::normalize3.- pcf_
kernel_ weight_ sum - Sum of PCF kernel weights.
- spot_
angular_ attenuation - Smooth angular falloff for spot lights between inner and outer cone cosines.
- visibility_
smith_ ggx - Smith Joint GGX Visibility function (Heitz 2014).