meshLODLevel.d.ts 1.0 KB

12345678910111213141516171819202122
  1. import type { Mesh } from "./mesh";
  2. import type { Nullable } from "../types";
  3. /**
  4. * Class used to represent a specific level of detail of a mesh
  5. * @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
  6. */
  7. export declare class MeshLODLevel {
  8. /** 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*/
  9. distanceOrScreenCoverage: number;
  10. /** Defines the mesh to use to render this level */
  11. mesh: Nullable<Mesh>;
  12. /**
  13. * Creates a new LOD level
  14. * @param distanceOrScreenCoverage defines either the distance or the screen coverage where this level should start being displayed
  15. * @param mesh defines the mesh to use to render this level
  16. */
  17. constructor(
  18. /** 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*/
  19. distanceOrScreenCoverage: number,
  20. /** Defines the mesh to use to render this level */
  21. mesh: Nullable<Mesh>);
  22. }