VoxelPrimitive

external class VoxelPrimitive(options: VoxelPrimitive.ConstructorOptions? = definedExternally)(source)

A primitive that renders voxel data from a VoxelProvider.

See also

Constructors

Link copied to clipboard
constructor(options: VoxelPrimitive.ConstructorOptions? = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Gets the bounding sphere.

Link copied to clipboard

The ClippingPlaneCollection used to selectively disable rendering the primitive.

Link copied to clipboard

Gets or sets the custom shader. If undefined, VoxelPrimitive.DefaultCustomShader is set.

Link copied to clipboard

Gets an event that is raised whenever a custom shader is compiled.

Link copied to clipboard

Gets or sets whether or not to render debug visualizations.

Link copied to clipboard

Gets or sets whether or not to test against depth when rendering.

Link copied to clipboard

Gets the voxel dimensions.

Link copied to clipboard

Gets or sets whether or not the primitive should update when the view changes.

Link copied to clipboard

Gets or sets the maximum bounds in the shape's local coordinate system. Voxel data is stretched or squashed to fit the bounds.

Link copied to clipboard

Gets or sets the maximum clipping location in the shape's local coordinate system. Any voxel content outside the range is clipped.

Link copied to clipboard

Gets the maximum value per channel of the voxel data.

Link copied to clipboard

Gets or sets the minimum bounds in the shape's local coordinate system. Voxel data is stretched or squashed to fit the bounds.

Link copied to clipboard

Gets or sets the minimum clipping location in the shape's local coordinate system. Any voxel content outside the range is clipped.

Link copied to clipboard

Gets the minimum value per channel of the voxel data.

Link copied to clipboard

Gets the model matrix.

Link copied to clipboard

Gets or sets the nearest sampling.

Link copied to clipboard

Gets the oriented bounding box.

Link copied to clipboard

Gets the VoxelProvider associated with this primitive.

Link copied to clipboard

Gets a value indicating whether or not the primitive is ready for use.

Link copied to clipboard

Gets or sets the screen space error in pixels. If the screen space size of a voxel is greater than the screen space error, the tile is subdivided. Lower screen space error corresponds with higher detail rendering, but could result in worse performance and higher memory consumption.

Link copied to clipboard

Gets the shape type.

Link copied to clipboard

Gets or sets whether or not this primitive should be displayed.

Link copied to clipboard

Gets or sets the step size multiplier used during raymarching. The lower the value, the higher the rendering quality, but also the worse the performance.

Functions

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.