Value and type information for per-instance geometry color.
alias ColorGeometryInstanceAttribute
- {Number} [red=1.0] The red component.
- {Number} [green=1.0] The green component.
- {Number} [blue=1.0] The blue component.
- {Number} [alpha=1.0] The alpha component.
Annotations
@RawJSType()@native()@JSName(...)
Example:
var instance = new Cesium.GeometryInstance({
geometry : Cesium.BoxGeometry.fromDimensions({
dimensions : new Cesium.Cartesian3(1000000.0, 1000000.0, 500000.0)
}),
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
Cesium.Cartesian3.fromDegrees(0.0, 0.0)), new Cesium.Cartesian3(0.0, 0.0, 1000000.0), new Cesium.Matrix4()),
id : 'box',
attributes : {
color : new Cesium.ColorGeometryInstanceAttribute(red, green, blue, alpha)
}
});
Value and type information for per-instance geometry color.
alias ColorGeometryInstanceAttribute
- {Number} [red=1.0] The red component. - {Number} [green=1.0] The green component. - {Number} [blue=1.0] The blue component. - {Number} [alpha=1.0] The alpha component.
var instance = new Cesium.GeometryInstance({ geometry : Cesium.BoxGeometry.fromDimensions({ dimensions : new Cesium.Cartesian3(1000000.0, 1000000.0, 500000.0) }), modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame( Cesium.Cartesian3.fromDegrees(0.0, 0.0)), new Cesium.Cartesian3(0.0, 0.0, 1000000.0), new Cesium.Matrix4()), id : 'box', attributes : { color : new Cesium.ColorGeometryInstanceAttribute(red, green, blue, alpha) } });
GeometryInstanceAttribute
GeometryInstance