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