Colour problem on Geometry

Just been playing with the new Geometry and playing with the colours.

In the code below, from the sandcastle example, if I modify the alpha channel then its having no effect. Am I missing something?

Thanks

Alex

Hi Alex,

In addition to your change, also tell the appearance it is translucent when constructing it. In the Sandcastle code below change “translucent : false” to “translucent : true”

primitives.add(new Cesium.Primitive({

geometryInstances : [extrudedPolygon, extrudedExtent, extrudedEllipse, cylinderInstance],

appearance : new Cesium.PerInstanceColorAppearance({

translucent : false,

closed : true

})

}));

Regards,

Patrick

Brilliant

Thanks Patrick

Alex