I am trying to set the colour of an entity using ColorMaterialProperty. However, I am getting the following error:
Here is an example of some of the code:
roof_one = entities[3];
roof_one.polygon.material = new Cesium.ColorMaterialProperty(createSampledProperty(0, difference, 1800));
I am using Cesium 1.34, on Mac, on Google Chrome.
Thanks.