UNPKG

886 BTypeScriptView Raw
1import { Geometry } from './core/Geometry';
2import { Material } from './materials/Material';
3import { Object3D } from './core/Object3D';
4import { Scene } from './scenes/Scene';
5
6export namespace SceneUtils {
7 export function createMultiMaterialObject(
8 geometry: Geometry,
9 materials: Material[]
10 ): Object3D;
11 export function detach( child: Object3D, parent: Object3D, scene: Scene ): void;
12 export function attach( child: Object3D, scene: Scene, parent: Object3D ): void;
13}
14
15/**
16 * @deprecated Use an Array instead.
17 */
18export class MultiMaterial extends Material {
19
20 constructor( materials?: Material[] );
21
22 readonly isMultiMaterial: true;
23
24 materials: Material[];
25
26 toJSON( meta: any ): any;
27
28}
29
30/**
31 * @deprecated Material.vertexColors is now a boolean.
32 */
33export enum Colors {}
34export const NoColors: Colors;
35export const FaceColors: Colors;
36export const VertexColors: Colors;