1 | import { Color } from './../math/Color';
|
2 | import { Texture } from './../textures/Texture';
|
3 | import { MaterialParameters, Material } from './Material';
|
4 | import { Combine } from '../constants';
|
5 | import { ColorRepresentation } from '../utils';
|
6 |
|
7 | export interface MeshLambertMaterialParameters extends MaterialParameters {
|
8 | color?: ColorRepresentation | undefined;
|
9 | emissive?: ColorRepresentation | undefined;
|
10 | emissiveIntensity?: number | undefined;
|
11 | emissiveMap?: Texture | null | undefined;
|
12 | map?: Texture | null | undefined;
|
13 | lightMap?: Texture | null | undefined;
|
14 | lightMapIntensity?: number | undefined;
|
15 | aoMap?: Texture | null | undefined;
|
16 | aoMapIntensity?: number | undefined;
|
17 | specularMap?: Texture | null | undefined;
|
18 | alphaMap?: Texture | null | undefined;
|
19 | envMap?: Texture | null | undefined;
|
20 | combine?: Combine | undefined;
|
21 | reflectivity?: number | undefined;
|
22 | refractionRatio?: number | undefined;
|
23 | wireframe?: boolean | undefined;
|
24 | wireframeLinewidth?: number | undefined;
|
25 | wireframeLinecap?: string | undefined;
|
26 | wireframeLinejoin?: string | undefined;
|
27 | }
|
28 |
|
29 | export class MeshLambertMaterial extends Material {
|
30 | constructor(parameters?: MeshLambertMaterialParameters);
|
31 |
|
32 | /**
|
33 | * @default 'MeshLambertMaterial'
|
34 | */
|
35 | type: string;
|
36 |
|
37 | /**
|
38 | * @default new THREE.Color( 0xffffff )
|
39 | */
|
40 | color: Color;
|
41 |
|
42 | /**
|
43 | * @default new THREE.Color( 0x000000 )
|
44 | */
|
45 | emissive: Color;
|
46 |
|
47 | /**
|
48 | * @default 1
|
49 | */
|
50 | emissiveIntensity: number;
|
51 |
|
52 | /**
|
53 | * @default null
|
54 | */
|
55 | emissiveMap: Texture | null;
|
56 |
|
57 | /**
|
58 | * @default null
|
59 | */
|
60 | map: Texture | null;
|
61 |
|
62 | /**
|
63 | * @default null
|
64 | */
|
65 | lightMap: Texture | null;
|
66 |
|
67 | /**
|
68 | * @default 1
|
69 | */
|
70 | lightMapIntensity: number;
|
71 |
|
72 | /**
|
73 | * @default null
|
74 | */
|
75 | aoMap: Texture | null;
|
76 |
|
77 | /**
|
78 | * @default 1
|
79 | */
|
80 | aoMapIntensity: number;
|
81 |
|
82 | /**
|
83 | * @default null
|
84 | */
|
85 | specularMap: Texture | null;
|
86 |
|
87 | /**
|
88 | * @default null
|
89 | */
|
90 | alphaMap: Texture | null;
|
91 |
|
92 | /**
|
93 | * @default null
|
94 | */
|
95 | envMap: Texture | null;
|
96 |
|
97 | /**
|
98 | * @default THREE.MultiplyOperation
|
99 | */
|
100 | combine: Combine;
|
101 |
|
102 | /**
|
103 | * @default 1
|
104 | */
|
105 | reflectivity: number;
|
106 |
|
107 | /**
|
108 | * @default 0.98
|
109 | */
|
110 | refractionRatio: number;
|
111 |
|
112 | /**
|
113 | * @default false
|
114 | */
|
115 | wireframe: boolean;
|
116 |
|
117 | /**
|
118 | * @default 1
|
119 | */
|
120 | wireframeLinewidth: number;
|
121 |
|
122 | /**
|
123 | * @default 'round'
|
124 | */
|
125 | wireframeLinecap: string;
|
126 |
|
127 | /**
|
128 | * @default 'round'
|
129 | */
|
130 | wireframeLinejoin: string;
|
131 |
|
132 | setValues(parameters: MeshLambertMaterialParameters): void;
|
133 | }
|