-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathglobal.d.ts
27 lines (22 loc) · 949 Bytes
/
global.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
declare module '*.js';
declare module 'Mesh'{
import {BufferGeometry} from "three/src/core/BufferGeometry";
import {Material} from "three/src/materials/Material";
import {Object3D} from "three/src/core/Object3D";
import {Intersection, Raycaster} from "three/src/core/Raycaster";
import {ShaderMaterial} from "three";
export class Mesh<
TGeometry extends BufferGeometry = BufferGeometry,
TMaterial extends Material | Material[] = Material | Material[],
> extends Object3D {
constructor(geometry?: TGeometry, material?: TMaterial);
geometry: TGeometry;
material: ShaderMaterial;
morphTargetInfluences?: number[] | undefined;
morphTargetDictionary?: { [key: string]: number } | undefined;
readonly isMesh: true;
type: string;
updateMorphTargets(): void;
raycast(raycaster: Raycaster, intersects: Intersection[]): void;
}
}