meshLODLevel.js 825 B

1234567891011121314151617181920
  1. /**
  2. * Class used to represent a specific level of detail of a mesh
  3. * @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
  4. */
  5. export class MeshLODLevel {
  6. /**
  7. * Creates a new LOD level
  8. * @param distanceOrScreenCoverage defines either the distance or the screen coverage where this level should start being displayed
  9. * @param mesh defines the mesh to use to render this level
  10. */
  11. constructor(
  12. /** Either distance from the center of the object to show this level or the screen coverage if `useLODScreenCoverage` is set to `true` on the mesh*/
  13. distanceOrScreenCoverage,
  14. /** Defines the mesh to use to render this level */
  15. mesh) {
  16. this.distanceOrScreenCoverage = distanceOrScreenCoverage;
  17. this.mesh = mesh;
  18. }
  19. }
  20. //# sourceMappingURL=meshLODLevel.js.map