@types/three
Version:
TypeScript definitions for three
31 lines (24 loc) • 1.22 kB
TypeScript
import { InstancedBufferAttribute } from "../../core/InstancedBufferAttribute.js";
import { InstancedInterleavedBuffer } from "../../core/InstancedInterleavedBuffer.js";
import StorageInstancedBufferAttribute from "../../renderers/common/StorageInstancedBufferAttribute.js";
import Node from "../core/Node.js";
export default class InstanceNode extends Node {
count: number;
instanceMatrix: InstancedBufferAttribute | StorageInstancedBufferAttribute;
instanceColor: InstancedBufferAttribute | StorageInstancedBufferAttribute | null;
instanceMatrixNode: Node | null;
instanceColorNode: Node | null;
buffer: InstancedInterleavedBuffer | null;
bufferColor: InstancedBufferAttribute | null;
previousInstancedMatrixNode: Node | null;
constructor(
count: number,
instanceMatrix: InstancedBufferAttribute | StorageInstancedBufferAttribute,
instanceColor?: InstancedBufferAttribute | StorageInstancedBufferAttribute | null,
);
}
export const instance: (
count: number,
instanceMatrix: InstancedBufferAttribute | StorageInstancedBufferAttribute,
instanceColor?: InstancedBufferAttribute | StorageInstancedBufferAttribute | null,
) => InstanceNode;