meshLODLevel.ts 684 B

1234567891011121314151617181920
  1. import { Mesh } from './mesh';
  2. import { Nullable } from '../types';
  3. /**
  4. * Class used to represent a specific level of detail of a mesh
  5. * @see https://doc.babylonjs.com/how_to/how_to_use_lod
  6. */
  7. export class MeshLODLevel {
  8. /**
  9. * Creates a new LOD level
  10. * @param distance defines the distance where this level should star being displayed
  11. * @param mesh defines the mesh to use to render this level
  12. */
  13. constructor(
  14. /** Defines the distance where this level should start being displayed */
  15. public distance: number,
  16. /** Defines the mesh to use to render this level */
  17. public mesh: Nullable<Mesh>) {
  18. }
  19. }