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.09k stars 534 forks source link

Support KHR_materials_specular #287

Closed 3D-Dev closed 2 years ago

3D-Dev commented 2 years ago

Hi, Environment is displayed differently for the same glb model (ex: SpecularTest.glb). Do you know the cause? https://gltf-viewer.donmccurdy.com/ https://github.khronos.org/glTF-Sample-Viewer-Release/ You can download the model from https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/SpecularTest. Looks like Don's viewer doesn't support KHR_materials_specular. Load the model in glTF Sample Viewer, go to the Advanced Controls, and disable KHR_materials_specular... same result. Can you tell me about supporting KHR_materials?

donmccurdy commented 2 years ago

three.js and this viewer do support KHR_materials_specular, that support was added in https://github.com/mrdoob/three.js/pull/22156.

You can see the effects of the specular extension in this screenshot:

Screen Shot 2022-01-29 at 6 32 02 PM

If you're seeing something different, could share a screenshot of what you see vs. what you expect?