NormalMapNode.html.md 998 B

Inheritance: EventDispatcher → Node → TempNode →

NormalMapNode

This class can be used for applying normals maps to materials.

Code Example

material.normalNode = normalMap( texture( normalTex ) );

Constructor

new NormalMapNode( node : Node., scaleNode : Node. )

Constructs a new normal map node.

node

Represents the normal map data.

scaleNode

Controls the intensity of the effect.

Default is null.

Properties

.node : Node.

Represents the normal map data.

.normalMapType : TangentSpaceNormalMap | ObjectSpaceNormalMap

The normal map type.

Default is TangentSpaceNormalMap.

.scaleNode : Node.

Controls the intensity of the effect.

Default is null.

.unpackNormalMode : string

Controls how to unpack the sampled normal map values.

Default is NoNormalPacking.

Source

src/nodes/display/NormalMapNode.js

粤ICP备19079148号