donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.12k stars 537 forks source link

Textures showing up darker #165

Closed MuffyMaria closed 5 years ago

MuffyMaria commented 5 years ago

Hey there! I have noticed that 3D models' materials have been showing up darker compared to when they were being prepared in Substance Painter. For example, a model that is exported with a full white material/texture shows up lightly grey in the gltf viewer.

image

Has there been any color display changes to the viewer lately? Thank you!

donmccurdy commented 5 years ago

There are changes to the PBR lighting equations in threejs periodically, things like energy conservation would affect overall brightness. But If you're just comparing the brightness of a fully-white material, the dominant factor is almost certainly going to be scene lighting, and I haven't made any attempt to match the default lighting from any particular program like Substance Painter.

The effect above looks OK to me, mostly just that SP has brighter lighting from one direction.

MuffyMaria commented 5 years ago

Aah alright, understood. Thank you for the quick reply!