DassaultSystemes-Technology / dspbr-pt

A WebGL2 Enterprise PBR sample renderer
Apache License 2.0
140 stars 19 forks source link

Attenuation color not working? #22

Closed emackey closed 3 years ago

emackey commented 3 years ago

I'm testing out attenuation colors with this model: https://github.com/KhronosGroup/glTF-Sample-Models/pull/306 (see README).

But, it doesn't look like the attenuation color is present:

image

bsdorra commented 3 years ago

Fixed with 5ad44ca For now, Autoscale Scene needs to be set to false before scene loading (default is true). Otherwise, the scene dimensions will be normalized which likely results in unexpected absorption behavior. I'll add a camera transform which adapts to the original scene dimension on load so that the auto-scale can be disabled by default. image

emackey commented 3 years ago

Looks great!