I need the ability to dynamically adjust the colors and/or opacity of components within a loaded gLTF model. I can do this without difficulty in THREE.js, but am unable to get the model to update in Cesium.
I can access the named materials on the loaded model in Cesium using model.gltf.materials[MATERIAL_NAME]. From here, material.instanceTechnique.values.diffuse corresponds to the defined color of the material. I can modify these values directly, however the results are never redrawn. Do I need to call another function to force an update of the model, or should I be taking a different approach?
thanks,
- David