RenderOptions

class RenderOptions @JvmOverloads constructor(val enableDepthSorting: Boolean = true, val enableBackfaceCulling: Boolean = true, val enableBoundsChecking: Boolean = true, val enableBroadPhaseSort: Boolean = true, val broadPhaseCellSize: Double = DEFAULT_BROAD_PHASE_CELL_SIZE)

Configuration options for rendering

Constructors

Link copied to clipboard
constructor(enableDepthSorting: Boolean = true, enableBackfaceCulling: Boolean = true, enableBoundsChecking: Boolean = true, enableBroadPhaseSort: Boolean = true, broadPhaseCellSize: Double = DEFAULT_BROAD_PHASE_CELL_SIZE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Cell size in pixels for the broad-phase grid. Smaller values increase precision but use more memory.

Link copied to clipboard

Remove back-facing polygons (improves performance)

Link copied to clipboard

Remove polygons outside viewport bounds (improves performance)

Link copied to clipboard

Enable broad-phase spatial bucketing to prune depth-sort candidate pairs (faster for large scenes)

Link copied to clipboard

Enable complex intersection-based depth sorting (slower but correct)

Functions

Link copied to clipboard
fun copy(enableDepthSorting: Boolean = this.enableDepthSorting, enableBackfaceCulling: Boolean = this.enableBackfaceCulling, enableBoundsChecking: Boolean = this.enableBoundsChecking, enableBroadPhaseSort: Boolean = this.enableBroadPhaseSort, broadPhaseCellSize: Double = this.broadPhaseCellSize): RenderOptions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String