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

Cast Shadows #364

Closed 6TMDModeling closed 4 months ago

6TMDModeling commented 4 months ago

Sample hello I use gLTF-Viewer successfully with my GLB animated characters the only thing I'm missing is to generate cast shadows, is this possible?, thank you in advance, I have no developer skills, being a simple user, thank you for your help, best regards

donmccurdy commented 4 months ago

Hi — This viewer does not include shadows. The rendering library it is built on, three.js, does provide various examples of how to add shadows to your scene:

https://threejs.org/examples/?q=shadow

That said, it isn't a feature I plan to add here, so you would need to either find a developer, explore the examples yourself, or consult the three.js forums if you get stuck: https://discourse.threejs.org/