Reputation: 528
I am used to alter Objects3Ds Materials in the THREE.js scene graph.
Now i switched to typescript and have some troubles accessing Mesh Materials (after creation)! The docs and types state that there is no Object3D.material
I also dont see the .material anywhere on the Object3D during runtime!
To make it work with Typescript - can I just to cast it to Mesh? Or how do I access the Mesh from Object3D?
Upvotes: 0
Views: 2627