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.
Parameters
Section titled “Parameters”heightTex
Section titled “heightTex”Heightmap texture
Node <"vec2">
UV coordinates
strength?
Section titled “strength?”FloatInput = 1
Normal strength multiplier
scale?
Section titled “scale?”FloatInput = 2
Sampling scale (higher = smoother but less detail)
Returns
Section titled “Returns”Node <"vec3">
Normal vector in tangent space