This class can be used for applying normals maps to materials.
material.normalNode = normalMap( texture( normalTex ) );
export {}Constructor
new NormalMapNode(node, scaleNode?)| Parameter | Type | Default Value |
|---|---|---|
| node | Node<vec3> | — |
| scaleNode? | any | null |
Constructs a new normal map node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| node | any | — | |
| scaleNode | any | — | |
| normalMapType | number | — | |
| unpackNormalMode | string | — | |
| Method | Type | |
|---|---|---|
| setup | (builder: any) => any | |
Extends
TempNodeTSL function for creating a normal map node.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node<vec3> | — |
| scaleNode? | Node<vec2> | — |
Returns
NormalMapNode