An appearance for GeometryInstance instances with color attributes and PolylineGeometry
This allows several geometry instances, each with a different color, to
be drawn with the same Primitive
alias PolylineColorAppearance
- The options object takes the following properties
- {Boolean} [options.translucent=true] When true, the geometry is expected to appear translucent so PolylineColorAppearance#renderState has alpha blending enabled.
- {String} [options.vertexShaderSource] Optional GLSL vertex shader source to override the default vertex shader.
- {String} [options.fragmentShaderSource] Optional GLSL fragment shader source to override the default fragment shader.
- {RenderState} [options.renderState] Optional render state to override the default render state.
An appearance for GeometryInstance instances with color attributes and PolylineGeometry This allows several geometry instances, each with a different color, to be drawn with the same Primitive
alias PolylineColorAppearance
- The options object takes the following properties - {Boolean} [options.translucent=true] When
true
, the geometry is expected to appear translucent so PolylineColorAppearance#renderState has alpha blending enabled. - {String} [options.vertexShaderSource] Optional GLSL vertex shader source to override the default vertex shader. - {String} [options.fragmentShaderSource] Optional GLSL fragment shader source to override the default fragment shader. - {RenderState} [options.renderState] Optional render state to override the default render state.// A solid white line segment var primitive = new Cesium.Primitive({ geometryInstances : new Cesium.GeometryInstance({ geometry : new Cesium.PolylineGeometry({ positions : Cesium.Cartesian3.fromDegreesArray([ 0.0, 0.0, 5.0, 0.0 ]), width : 10.0, vertexFormat : Cesium.PolylineColorAppearance.VERTEX_FORMAT }), attributes : { color : Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(1.0, 1.0, 1.0, 1.0)) } }), appearance : new Cesium.PolylineColorAppearance({ translucent : false }) });