Companion

external object Companion(source)

Functions

Link copied to clipboard
suspend external fun initializeTerrainHeights()

Initializes the minimum and maximum terrain heights. This only needs to be called if you are creating the GroundPrimitive synchronously.

Link copied to clipboard
Link copied to clipboard
external fun isSupported(scene: Scene): Boolean

Determines if GroundPrimitive rendering is supported.

Link copied to clipboard
external fun supportsMaterials(scene: Scene): Boolean

Checks if the given Scene supports materials on GroundPrimitives. Materials on GroundPrimitives require support for the WEBGL_depth_texture extension.