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.06k stars 530 forks source link

What is the 'punctualLights'? How can I make a same options in Three.js? #361

Closed idyun93 closed 5 months ago

idyun93 commented 5 months ago

https://gltf-viewer.donmccurdy.com/

I uploaded a file(.glb), I checked 'punctualLights' but my test website looks not same. Anyone know about punctualLights?

donmccurdy commented 5 months ago

Hi @idyun93 — see:

https://github.com/donmccurdy/three-gltf-viewer/blob/4fa0d14e7989b9edafb32328c67863dff090bf9e/src/viewer.js#L388-L395

idyun93 commented 5 months ago

Thank you @donmccurdy !