Capítulo 557 de 859
Manages a preprocessed HDR environment map (CDF textures, uniforms) and exposes TSL helpers for BRDF-direction lookups and MIS importance sampling.
Constructor
| Signature |
|---|
new ImportanceSampledEnvironment( importanceSampling : boolean ) |
Methods
| Method | Description |
|---|---|
.sampleEnvironmentBRDF( params : Object ) : Node.<vec3> | Environment reflection for a screen-space miss using only the BRDF / reflected-ray direction. |
.sampleEnvironmentMIS( params : Object ) : Node.<vec3> | Environment reflection for a screen-space miss, estimated with multiple importance sampling (MIS) between the BRDF / reflected-ray direction and the env-luminance CDF direction. Both techniques use c… |
.sampleReflect( params : Object ) : Node.<vec3> | Simple environment lookup along the reflected direction (no MIS). |
.updateFrom( hdr : Texture ) | hdr |