playcanvas-opti-pixel - v1.2.0
    Preparing search index...

    Class SimpleHierarchicalInstancer

    Hierarchy (View Summary)

    Index
    colorsTexture: ColorDataTexture = ...

    Texture storing colors for instances.

    device: GraphicsDevice

    Instanced mesh graphics device

    lodFadeTime: number

    Time at which the LOD disappears before switching to another LOD.

    LODs: ILODLevel[] = []

    LODs

    matricesTexture: Mat4DataTexture

    Texture storing matrices for instances.

    • Parameters

      • meshInstanceList: MeshInstance[] | null
      • root: Entity | null
      • distance: number = 0
      • hysteresis: number = 0

      Returns number

    • Parameters

      • camera: Camera
      • cameraPosition: Vec3
      • onFrustumEnter: TOnFrustumEnter

      Returns void

    • Indicates if a specific instance is visible and active.

      Parameters

      • id: number

        The index of the instance.

      Returns boolean

      Whether the instance is visible and active.

    • Gets the availability of a specific instance.

      Parameters

      • id: number

        The index of the instance.

      Returns boolean

      Whether the instance is active (not deleted).

    • Gets the visibility of a specific instance.

      Parameters

      • id: number

        The index of the instance.

      Returns boolean

      Whether the instance is visible.

    • Set if a specific instance is visible and active.

      Parameters

      • id: number

        The index of the instance.

      • value: boolean

        Whether the instance is active and active (not deleted).

      Returns void

    • Sets the availability of a specific instance.

      Parameters

      • id: number

        The index of the instance.

      • active: boolean

        Whether the instance is active (not deleted).

      Returns void

    • Sets the visibility of a specific instance.

      Parameters

      • id: number

        The index of the instance.

      • visible: boolean

        Whether the instance should be visible.

      Returns void

    • Parameters

      • dt: number
      • camera: Camera
      • cameraPosition: Vec3
      • OptionalonFrustumEnter: TOnFrustumEnterThenUpdate

      Returns void