@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
23 lines (22 loc) • 1.07 kB
TypeScript
import type { Mesh } from "./mesh.js";
import type { Nullable } from "../types.js";
/**
* Class used to represent a specific level of detail of a mesh
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/LOD
*/
export declare class MeshLODLevel {
/** 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*/
distanceOrScreenCoverage: number;
/** Defines the mesh to use to render this level */
mesh: Nullable<Mesh>;
/**
* Creates a new LOD level
* @param distanceOrScreenCoverage defines either the distance or the screen coverage where this level should start being displayed
* @param mesh defines the mesh to use to render this level
*/
constructor(
/** 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*/
distanceOrScreenCoverage: number,
/** Defines the mesh to use to render this level */
mesh: Nullable<Mesh>);
}