RSX Code Reference
    Preparing search index...
    • rsx
    • MeshLODGroup

    Class MeshLODGroup

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

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns MeshLODGroup

    • get isActive(): boolean

      Determines if the LOD Group is active.

      Returns boolean

    • set isActive(value: boolean): void

      Parameters

      • value: boolean

      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: Mesh): 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 screenCoverage(): number

      Sets the maximum screen coverage.

      Returns number

    • set screenCoverage(value: number): void

      Parameters

      • value: number

      Returns void

    • Gets the material section at the specified index.

      Parameters

      • index: number

      Returns MaterialSection