@JsType(isNative=true, namespace="Cesium", name="Appearance") public class Appearance extends Object
MaterialAppearance
,
EllipsoidSurfaceAppearance
,
PerInstanceColorAppearance
,
DebugAppearance
,
PolylineColorAppearance
,
PolylineMaterialAppearance
Modifier and Type | Field and Description |
---|---|
Material |
material
The material used to determine the fragment color.
|
boolean |
translucent
When true, the geometry is expected to appear translucent.
|
Constructor and Description |
---|
Appearance()
An appearance defines the full GLSL vertex and fragment shaders and the render state used to draw a Primitive.
|
Appearance(AppearanceOptions options)
An appearance defines the full GLSL vertex and fragment shaders and the render state used to draw a Primitive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closed()
When true, the geometry is expected to be closed.
|
String |
fragmentShaderSource()
The GLSL source code for the fragment shader.
|
String |
getFragmentShaderSource()
Procedurally creates the full GLSL fragment shader source for this appearance taking into account
fragmentShaderSource() and material . |
Object |
getRenderState()
Creates a render state.
|
boolean |
isTranslucent()
Determines if the geometry is translucent based on Appearance#translucent and Material#isTranslucent.
|
Object |
renderState()
The WebGL fixed-function state to use when rendering the geometry.
|
String |
vertexShaderSource()
The GLSL source code for the vertex shader.
|
@JsProperty public Material material
@JsProperty public boolean translucent
@JsConstructor public Appearance()
@JsConstructor public Appearance(AppearanceOptions options)
options
- AppearanceOptions
MaterialAppearance
,
EllipsoidSurfaceAppearance
,
PerInstanceColorAppearance
,
DebugAppearance
,
PolylineColorAppearance
,
PolylineMaterialAppearance
@JsProperty(name="closed") public boolean closed()
@JsProperty(name="fragmentShaderSource") public String fragmentShaderSource()
material
. Use getFragmentShaderSource()
to get the full source.@JsProperty(name="renderState") public Object renderState()
@JsProperty(name="vertexShaderSource") public String vertexShaderSource()
@JsMethod public String getFragmentShaderSource()
fragmentShaderSource()
and material
.@JsMethod public Object getRenderState()
@JsMethod public boolean isTranslucent()
Copyright © 2019. All rights reserved.