Skip to content

normalFromHeightSmooth

normalFromHeightSmooth(heightTex, uv, strength?, scale?): Node <"vec3">

Defined in: packages/nodes/src/lighting/normalFromHeight.ts:64

Generate a normal map from a heightmap with adjustable detail. Uses a larger sampling kernel for smoother normals.

Texture 

Heightmap texture

Node <"vec2">

UV coordinates

FloatInput = 1

Normal strength multiplier

FloatInput = 2

Sampling scale (higher = smoother but less detail)

Node <"vec3">

Normal vector in tangent space