2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
var mat = primitive.getMaterial(primitive.getMesh(node.mesh).materials[0].name);
mat.setValue("emissiveFactor", new Cesium.Cartesian3(1, 0, 0));
Here the problem is that the material is shared across multiple meshes so changing the emissive factor affects all of them instead of just the mesh I want. How can I properly duplicate the material?
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I want to color a single node/mesh so that each portion of the model doesn't have to be a separate glTF
4. The Cesium version you're using, your operating system and browser.
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/jC0GSku_1b8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cesium-dev/03bfea49-1636-4ca6-a5a0-8ded40d25039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.