three-gpu-pathtracer icon indicating copy to clipboard operation
three-gpu-pathtracer copied to clipboard

Cast Shadows Flag: MIS sampling needs to determine the shadow ray from the env sample direction rather than new sample

Open gkjohnson opened this issue 2 years ago • 0 comments

Related to #274

See here: https://github.com/gkjohnson/three-gpu-pathtracer/blob/1bb778bc79669918e8b40bc80cd32b1a6e7dad0d/src/materials/PhysicalPathTracingMaterial.js#L891-L902

Maybe it makes sense to be able to determine the specular PDF without getting the full set of material properties.

gkjohnson avatar Nov 25 '22 14:11 gkjohnson