ConstructorOptions

Properties

Link copied to clipboard
abstract var closed: Boolean?

When true, the geometry is expected to be closed so MaterialAppearance.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.closed

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

The type of materials that will be supported. Default value - MaterialAppearance.MaterialSupport.TEXTURED

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 MaterialAppearance.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.