Class MeshLODGroup

The MeshLODGroup class represents a LOD Group composed of meshes that will switch their display state based on the screen coverage.

Hierarchy

  • FrameworkObject
    • MeshLODGroup

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns MeshLODGroup

Accessors

  • get isActive(): boolean
  • Determines if the LOD Group is active.

    Returns boolean

  • set isActive(value): void
  • Parameters

    • value: boolean

    Returns void

  • set materials(value): void
  • Sets all section materials used for rendering this group. Each of the materials is used for rendering a single material section. If number of materials is larger than number of sections, they will be ignored. If lower, the remaining materials will be removed.

    Parameters

    Returns void

  • get materialSectionCount(): number
  • Gets the number of material sections.

    Returns number

  • get mesh(): Mesh
  • Determines the mesh to render. All sub-meshes of the mesh will be rendered, and you may set individual materials for each sub-mesh through the section indices.

    Returns Mesh

  • set mesh(value): void
  • Determines the mesh to render. All sub-meshes of the mesh will be rendered, and you may set individual materials for each sub-mesh through the section indices.

    Parameters

    Returns void

  • get meshHandle(): ResourceHandle<Mesh>
  • Determines the mesh to render. All sub-meshes of the mesh will be rendered, and you may set individual materials for each sub-mesh through the section indices.

    Returns ResourceHandle<Mesh>

  • set meshHandle(value): void
  • Parameters

    Returns void

  • get screenCoverage(): number
  • Sets the maximum screen coverage.

    Returns number

  • set screenCoverage(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Assigns the specified material to the section with the specifeid sectionIndex.

    Parameters

    Returns void

  • Assigns the specified material to all sections.

    Parameters

    Returns void