Looping a batched primitive

Hi,

Is there a way to loop through the geometry instances of a primitive and update each color?

thanks

Hi,

Check out Primitive documentation, specifically the GeometryInstances property: https://cesiumjs.org/Cesium/Build/Documentation/Primitive.html?classFilter=primitive#geometryInstances

You should be able to loop through that and update the GeometryInstanceAttribute: https://cesiumjs.org/Cesium/Build/Documentation/ColorGeometryInstanceAttribute.html

Thanks,

Gabby