@JsType(isNative=true, namespace="Cesium", name="PerInstanceColorAppearance") public class PerInstanceColorAppearance extends Appearance
material, translucent
Constructor and Description |
---|
PerInstanceColorAppearance() |
PerInstanceColorAppearance(PerInstanceColorAppearanceOptions options) |
Modifier and Type | Method and Description |
---|---|
static PerInstanceColorAppearance |
create(boolean closed) |
boolean |
faceForward()
When true, the fragment shader flips the surface normal as needed to ensure that the normal faces the viewer to
avoid dark spots.
|
static VertexFormat |
FLAT_VERTEX_FORMAT()
The VertexFormat that all PerInstanceColorAppearance instances are compatible with when PerInstanceColorAppearance#flat
is false.
|
boolean |
flat()
When true, flat shading is used in the fragment shader, which means lighting is not taking into account.
|
static VertexFormat |
VERTEX_FORMAT()
The VertexFormat that all PerInstanceColorAppearance instances are compatible with.
|
VertexFormat |
vertexFormat()
The VertexFormat that this appearance instance is compatible with.
|
closed, fragmentShaderSource, getFragmentShaderSource, getRenderState, isTranslucent, renderState, vertexShaderSource
@JsConstructor public PerInstanceColorAppearance()
@JsConstructor public PerInstanceColorAppearance(PerInstanceColorAppearanceOptions options)
@JsProperty(name="FLAT_VERTEX_FORMAT") public static VertexFormat FLAT_VERTEX_FORMAT()
@JsProperty(name="VERTEX_FORMAT") public static VertexFormat VERTEX_FORMAT()
@JsProperty(name="faceForward") public boolean faceForward()
@JsProperty(name="flat") public boolean flat()
@JsProperty(name="vertexFormat") public VertexFormat vertexFormat()
@JsOverlay public static PerInstanceColorAppearance create(boolean closed)
Copyright © 2019. All rights reserved.