1 | import { NormalMapTypes } from "../constants.js";
|
2 | import { Vector2 } from "../math/Vector2.js";
|
3 | import { Texture } from "../textures/Texture.js";
|
4 | import { Material, MaterialParameters } from "./Material.js";
|
5 |
|
6 | export interface MeshNormalMaterialParameters extends MaterialParameters {
|
7 | bumpMap?: Texture | null | undefined;
|
8 | bumpScale?: number | undefined;
|
9 | normalMap?: Texture | null | undefined;
|
10 | normalMapType?: NormalMapTypes | undefined;
|
11 | normalScale?: Vector2 | undefined;
|
12 | displacementMap?: Texture | null | undefined;
|
13 | displacementScale?: number | undefined;
|
14 | displacementBias?: number | undefined;
|
15 | wireframe?: boolean | undefined;
|
16 | wireframeLinewidth?: number | undefined;
|
17 |
|
18 | flatShading?: boolean | undefined;
|
19 | }
|
20 |
|
21 | export class MeshNormalMaterial extends Material {
|
22 | constructor(parameters?: MeshNormalMaterialParameters);
|
23 |
|
24 | /**
|
25 | * Read-only flag to check if a given object is of type {@link MeshNormalMaterial}.
|
26 | * @remarks This is a _constant_ value
|
27 | * @defaultValue `true`
|
28 | */
|
29 | readonly isMeshNormalMaterial: true;
|
30 |
|
31 | |
32 |
|
33 |
|
34 | bumpMap: Texture | null;
|
35 |
|
36 | |
37 |
|
38 |
|
39 | bumpScale: number;
|
40 |
|
41 | |
42 |
|
43 |
|
44 | normalMap: Texture | null;
|
45 |
|
46 | |
47 |
|
48 |
|
49 | normalMapType: NormalMapTypes;
|
50 |
|
51 | |
52 |
|
53 |
|
54 | normalScale: Vector2;
|
55 |
|
56 | |
57 |
|
58 |
|
59 | displacementMap: Texture | null;
|
60 |
|
61 | |
62 |
|
63 |
|
64 | displacementScale: number;
|
65 |
|
66 | |
67 |
|
68 |
|
69 | displacementBias: number;
|
70 |
|
71 | |
72 |
|
73 |
|
74 | wireframe: boolean;
|
75 |
|
76 | |
77 |
|
78 |
|
79 | wireframeLinewidth: number;
|
80 |
|
81 | |
82 |
|
83 |
|
84 |
|
85 | flatShading: boolean;
|
86 |
|
87 | setValues(parameters: MeshNormalMaterialParameters): void;
|
88 | }
|