EllipsoidSurfaceAppearance

new Cesium.EllipsoidSurfaceAppearance(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. However, this appearance requires
fewer vertex attributes since the fragment shader can procedurally compute normal,
tangent, and bitangent.

Name

Type

Description

options

Object

optional
Object with the following properties:

Name

Type

Default

Description

flat

Boolean

false

optional
When true, flat shading is used in the fragment shader, which means lighting is not taking into account.

faceForward

Boolean

options.aboveGround

optional
When true, the fragment shader flips the surface normal as needed to ensure that the normal faces the viewer to avoid dark spots. This is useful when both sides of a geometry should be shaded like WallGeometry.

readonlyfaceForward : Boolean

When true, the fragment shader flips the surface normal
as needed to ensure that the normal faces the viewer to avoid
dark spots. This is useful when both sides of a geometry should be
shaded like WallGeometry.