meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
256 stars 48 forks source link

glTF files now cast and receive shadows #147

Closed SeanCurtis-TRI closed 1 year ago

SeanCurtis-TRI commented 1 year ago

Previously, the cast/receive shadow properties were only set on the root of the glTF scene -- a three.js Group node. Because the glTF object can comprise an arbitrary hierarchy of geometry, each of the meshes in the hierarchy need to be individually configured, otherwise they won't participate in shadows.

Update the gltf test:


This change is Reviewable