ConstructorOptions

Properties

Link copied to clipboard
abstract var aboveGround: Boolean?

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. Default value - false

Link copied to clipboard
abstract var faceForward: 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. Default value - options.aboveGround

Link copied to clipboard
abstract var flat: Boolean?

When true, flat shading is used in the fragment shader, which means lighting is not taking into account. Default value - false

Link copied to clipboard

Optional GLSL fragment shader source to override the default fragment shader.

Link copied to clipboard
abstract var material: Material?

The material used to determine the fragment color. Default value - Material.ColorType

Link copied to clipboard
abstract var renderState: Any?

Optional render state to override the default render state.

Link copied to clipboard
abstract var translucent: Boolean?

When true, the geometry is expected to appear translucent so EllipsoidSurfaceAppearance.renderState has alpha blending enabled. Default value - true

Link copied to clipboard
abstract var vertexShaderSource: String?

Optional GLSL vertex shader source to override the default vertex shader.