@JsType(isNative=true,
namespace="Cesium",
name="EllipsoidSurfaceAppearance")
public class EllipsoidSurfaceAppearance
extends Appearance
material, translucent| Constructor and Description |
|---|
EllipsoidSurfaceAppearance()
An appearance for geometry on the surface of the ellipsoid like
PolygonGeometry and RectangleGeometry,
which supports all materials like MaterialAppearance with MaterialAppearance.MaterialSupport.ALL(). |
EllipsoidSurfaceAppearance(EllipsoidSurfaceAppearanceOptions options)
An appearance for geometry on the surface of the ellipsoid like
PolygonGeometry and RectangleGeometry,
which supports all materials like MaterialAppearance with MaterialAppearance.MaterialSupport.ALL(). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aboveGround()
When true, the geometry is expected to be on the ellipsoid's surface - not at a constant height above it - so EllipsoidSurfaceAppearance#renderState has backface culling enabled.
|
static EllipsoidSurfaceAppearance |
create(boolean aboveGround) |
static EllipsoidSurfaceAppearance |
create(Material material) |
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.
|
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 EllipsoidSurfaceAppearance instances are compatible with, which requires only position
and st attributes.
|
VertexFormat |
vertexFormat()
The VertexFormat that this appearance instance is compatible with.
|
closed, fragmentShaderSource, getFragmentShaderSource, getRenderState, isTranslucent, renderState, vertexShaderSource@JsConstructor public EllipsoidSurfaceAppearance()
PolygonGeometry and RectangleGeometry,
which supports all materials like MaterialAppearance with MaterialAppearance.MaterialSupport.ALL().
However, this appearance requires fewer vertex attributes since the fragment shader can procedurally compute normal, binormal, and tangent.@JsConstructor public EllipsoidSurfaceAppearance(EllipsoidSurfaceAppearanceOptions options)
PolygonGeometry and RectangleGeometry,
which supports all materials like MaterialAppearance with MaterialAppearance.MaterialSupport.ALL().
However, this appearance requires fewer vertex attributes since the fragment shader can procedurally compute normal, binormal, and tangent.options - EllipsoidSurfaceAppearanceOptions@JsProperty(name="VERTEX_FORMAT") public static VertexFormat VERTEX_FORMAT()
@JsProperty(name="aboveGround") public boolean aboveGround()
@JsProperty(name="faceForward") public boolean faceForward()
@JsProperty(name="flat") public boolean flat()
@JsProperty(name="vertexFormat") public VertexFormat vertexFormat()
VERTEX_FORMAT()@JsOverlay public static EllipsoidSurfaceAppearance create(Material material)
@JsOverlay public static EllipsoidSurfaceAppearance create(boolean aboveGround)
Copyright © 2019. All rights reserved.