Contents

cameraDistance(_:)

Switch levels based on distance from the camera.

Declaration

static func cameraDistance(_ thresholds: [Float]) -> LevelOfDetailComponent.SelectionStrategy

Discussion

Each threshold specifies the maximum camera distance for a level. The last threshold is typically .infinity to catch all remaining distances.

See Also

Creating a strategy