forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththree.d.ts
31 lines (29 loc) · 816 Bytes
/
three.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { AElement } from "aframe";
import { Object3D, Mesh, WebGLRenderer, Scene, Camera } from "three";
declare module "three" {
interface Object3D {
matrixNeedsUpdate: boolean;
childrenNeedMatrixWorldUpdate: boolean;
eid?: number;
el?: AElement;
updateMatrices: (forceLocalUpdate?: boolean, forceWorldUpdate?: boolean, skipParents?: boolean) => void;
}
type GeometryGroup = { start: number; count: number; materialIndex: number };
interface Material {
eid?: number;
onBeforeRender: (
renderer: WebGLRenderer,
scene: Scene,
camera: Camera,
geometry: Geometry,
obj: Object3D,
group: GeometryGroup
) => void;
}
interface Mesh {
reflectionProbeMode: "static" | "dynamic" | false;
}
interface Vector3 {
near: Function;
}
}