Skip to main content

Namespace: InstancedMesh2

Classes

Interfaces

Type Aliases

CreateEntityCallback

Ƭ CreateEntityCallback<T>: (obj: Entity<T>, index: number) => void

Type parameters

Name
T

Type declaration

▸ (obj, index): void

Type of callback invoked after creation of each instance.

Parameters
NameType
objEntity<T>
indexnumber
Returns

void

Defined in

packages/InstancedMesh2/src/InstancedMesh2.ts:8


Entity

Ƭ Entity<T>: InstancedEntity & T

InstancedEntity with custom T data.

Type parameters

Name
T

Defined in

packages/InstancedMesh2/src/InstancedMesh2.ts:6

Variables

CullingDynamic

Const CullingDynamic: 2

Individual frustum culling for each instance, necessary for animated meshes.

Defined in

packages/InstancedMesh2/src/InstancedMesh2.ts:15


CullingNone

Const CullingNone: 0

Frustum culling is disabled, suitable if all instances are always visible in the camera's frustum.

Defined in

packages/InstancedMesh2/src/InstancedMesh2.ts:11


CullingStatic

Const CullingStatic: 1

Fast frustum culling using a BVH, ideal for static objects (you can only modify instances in onInstanceCreation callback).

Defined in

packages/InstancedMesh2/src/InstancedMesh2.ts:13