BumpMapNode

Last modified: Jun 30, 2024

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

material.normalNode = bumpMap( texture( bumpTex ) );
export {}

Constructor

new BumpMapNode(textureNode, scaleNode?, normalNode?)
ParameterTypeDefault Value
textureNodeNode<float>—
scaleNode?anynull
normalNode?Node<vec3>normalView

Constructs a new bump map node.

AccessorType

Properties

PropertyTypeDefault Value
textureNodeany—
scaleNodeany—
normalNodeany—
MethodType

Extends

Node

bumpMap

TSL function for creating a bump map node.

ParameterTypeDefault Value
textureNodeNode<float>—
scaleNode?Node<float>—
normalNode?Node<vec3>—

Returns

BumpMapNode