Constructor
new ImportanceSampledEnvironment( importanceSampling : boolean )
| importanceSampling |
When Default is |
Methods
.sampleEnvironmentBRDF( params : Object ) : Node.<vec3>
Environment reflection for a screen-space miss using only the BRDF / reflected-ray direction.
| params |
|
.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 consistent solid-angle PDFs (D·G1(N·V)/(4·N·V)), so
the power heuristic is unbiased. Adapted from three-gpu-pathtracer.
| params |
|
.sampleReflect( params : Object ) : Node.<vec3>
Simple environment lookup along the reflected direction (no MIS).
| params |
|
.updateFrom( hdr : Texture )
| hdr |
Equirectangular HDR environment map. |