1 | import { Combine, NormalMapTypes } from "../constants.js";
|
2 | import { Color, ColorRepresentation } from "../math/Color.js";
|
3 | import { Euler } from "../math/Euler.js";
|
4 | import { Vector2 } from "../math/Vector2.js";
|
5 | import { Texture } from "../textures/Texture.js";
|
6 | import { Material, MaterialParameters } from "./Material.js";
|
7 |
|
8 | export interface MeshLambertMaterialParameters extends MaterialParameters {
|
9 | bumpMap?: Texture | undefined;
|
10 | bumpScale?: number | undefined;
|
11 | color?: ColorRepresentation | undefined;
|
12 | displacementMap?: Texture | undefined;
|
13 | displacementScale?: number | undefined;
|
14 | displacementBias?: number | undefined;
|
15 | emissive?: ColorRepresentation | undefined;
|
16 | emissiveIntensity?: number | undefined;
|
17 | emissiveMap?: Texture | null | undefined;
|
18 | flatShading?: boolean | undefined;
|
19 | map?: Texture | null | undefined;
|
20 | lightMap?: Texture | null | undefined;
|
21 | lightMapIntensity?: number | undefined;
|
22 | normalMap?: Texture | undefined;
|
23 | normalScale?: Vector2 | undefined;
|
24 | aoMap?: Texture | null | undefined;
|
25 | aoMapIntensity?: number | undefined;
|
26 | specularMap?: Texture | null | undefined;
|
27 | alphaMap?: Texture | null | undefined;
|
28 | envMap?: Texture | null | undefined;
|
29 | envMapRotation?: Euler | undefined;
|
30 | combine?: Combine | undefined;
|
31 | reflectivity?: number | undefined;
|
32 | refractionRatio?: number | undefined;
|
33 | wireframe?: boolean | undefined;
|
34 | wireframeLinewidth?: number | undefined;
|
35 | wireframeLinecap?: string | undefined;
|
36 | wireframeLinejoin?: string | undefined;
|
37 | fog?: boolean | undefined;
|
38 | }
|
39 |
|
40 | export class MeshLambertMaterial extends Material {
|
41 | constructor(parameters?: MeshLambertMaterialParameters);
|
42 |
|
43 | /**
|
44 | * Read-only flag to check if a given object is of type {@link MeshLambertMaterial}.
|
45 | * @remarks This is a _constant_ value
|
46 | * @defaultValue `true`
|
47 | */
|
48 | readonly isMeshLambertMaterial: true;
|
49 |
|
50 | |
51 |
|
52 |
|
53 | color: Color;
|
54 |
|
55 | |
56 |
|
57 |
|
58 | bumpMap: Texture | null;
|
59 |
|
60 | |
61 |
|
62 |
|
63 | bumpScale: number;
|
64 |
|
65 | |
66 |
|
67 |
|
68 | displacementMap: Texture | null;
|
69 |
|
70 | |
71 |
|
72 |
|
73 | displacementScale: number;
|
74 |
|
75 | |
76 |
|
77 |
|
78 | displacementBias: number;
|
79 |
|
80 | |
81 |
|
82 |
|
83 | emissive: Color;
|
84 |
|
85 | |
86 |
|
87 |
|
88 | emissiveIntensity: number;
|
89 |
|
90 | |
91 |
|
92 |
|
93 | emissiveMap: Texture | null;
|
94 |
|
95 | |
96 |
|
97 |
|
98 | flatShading: boolean;
|
99 |
|
100 | |
101 |
|
102 |
|
103 | map: Texture | null;
|
104 |
|
105 | |
106 |
|
107 |
|
108 | lightMap: Texture | null;
|
109 |
|
110 | |
111 |
|
112 |
|
113 | lightMapIntensity: number;
|
114 |
|
115 | |
116 |
|
117 |
|
118 | normalMap: Texture | null;
|
119 |
|
120 | normalMapType: NormalMapTypes;
|
121 |
|
122 | |
123 |
|
124 |
|
125 | normalScale: Vector2;
|
126 |
|
127 | |
128 |
|
129 |
|
130 | aoMap: Texture | null;
|
131 |
|
132 | |
133 |
|
134 |
|
135 | aoMapIntensity: number;
|
136 |
|
137 | |
138 |
|
139 |
|
140 | specularMap: Texture | null;
|
141 |
|
142 | |
143 |
|
144 |
|
145 | alphaMap: Texture | null;
|
146 |
|
147 | |
148 |
|
149 |
|
150 | envMap: Texture | null;
|
151 |
|
152 | |
153 |
|
154 |
|
155 | envMapRotation: Euler;
|
156 |
|
157 | |
158 |
|
159 |
|
160 | combine: Combine;
|
161 |
|
162 | |
163 |
|
164 |
|
165 | reflectivity: number;
|
166 |
|
167 | |
168 |
|
169 |
|
170 | refractionRatio: number;
|
171 |
|
172 | |
173 |
|
174 |
|
175 | wireframe: boolean;
|
176 |
|
177 | |
178 |
|
179 |
|
180 | wireframeLinewidth: number;
|
181 |
|
182 | |
183 |
|
184 |
|
185 | wireframeLinecap: string;
|
186 |
|
187 | |
188 |
|
189 |
|
190 | wireframeLinejoin: string;
|
191 |
|
192 | |
193 |
|
194 |
|
195 |
|
196 | fog: boolean;
|
197 |
|
198 | setValues(parameters: MeshLambertMaterialParameters): void;
|
199 | }
|