pex-gl / pex-shaders

MIT License
4 stars 0 forks source link

PCSS soft shadow disappears in specular reflection when light intensity high #19

Open dmnsgn opened 6 months ago

dmnsgn commented 6 months ago

The soft gradient disappears when mixed with the color and the sampling pattern becomes more visible.

Screenshot 2024-05-30 at 22 02 39

Results above with a dir light at intensity 10 and a floor (roughness: 0.15, metallic: 0.75).

Clamping the D term of the brdf to 0->1 helped but that's not physically correct.

dmnsgn commented 6 months ago

To note three.js implementation examples shows the same signs:

image
dmnsgn commented 5 months ago

This is the assumed behaviour for high reflective surfaces (eg. big metallic).