Hi,
I am loading a GLTF scene. After the scene is loaded I have the meshes and I can say:
node.getChildMeshes()[1].material.
I would like to animate a property (color) of this material. Problem is that there are more than one type of materials with different properties and I need to find out what Is the type of the materials to understand what are its properties and what I can animate.
How can I do
const materialTypeName = getMaterialType(node.getChildMeshes()[1].material)
console.log(materialTypeName)
Thanks.