init(switchingResolutions:boundingBox:)
Creates a resolution metric for a level of detail component to switch with.
Declaration
init(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox)Parameters
- switchingResolutions:
An array of
DirectionalSwitchingResolutions. TheDirectionalSwitchingResolutionsat indexicorresponds to the LOD leveli + 1. - boundingBox:
The bounding box of the entity used when calculating the switching resolutions.