Nodes/ComfyUI-Leputen-Utils/Normal Map Normalize
ComfyUI Node

Normal Map Normalize

Fixes or rebuilds the Blue (Z) channel of a normal map. • Recalculate (Standard): Derives Z from X/Y using z = sqrt(1 - x² - y²), then maps to 0.5-1.0 range. Use for standard tangent-space normal maps. • Recalculate (0-1 Range): Same calculation but outputs raw Z (0-1). Use when shader expects unmapped values. • Set to 0/0.5/1: Forces a fixed value. Useful for debugging or special shaders.

By lilquail·Created 8 months ago·Updated 8 months ago· 1
Normal Map Normalize
  • image
  • IMAGE
output_zRecalculate (Standard)
CategoryLeputen-Utils/NormalMap

Inputs (2)

NameTypeDefaultDescription
imageIMAGEThe input normal map to be normalized.
output_zCOMBORecalculate (Standard)How to set the Blue (Z) channel. 'Recalculate' derives Z from X/Y for valid normals. Fixed values useful for specific shaders.

Outputs (1)

NameTypeDescription
IMAGEIMAGE