TEST PAGE
Normal Map LabSingle-file • WebGL
AboutNo image
1) Load Image & Generate Maps
Drag & drop or browse. Tune normal strength / blur. Specular comes from source luminance (scalable).
Source (Albedo)
Left: original image. If it’s a height map, check “Invert height” as needed.
Normal Map (1:1)
Computed via Sobel gradients → normalized to RGB. Strength scales slope.
Specular Map (luma)
Derived from source luminance × Specular Scale. Used in WebGL specular highlights.
2) 3D Preview (Albedo + Normal + Specular)
Pick a shape, drag to rotate, and move the light.
Drag to rotate • Double-click to reset • Uses tangent-space normal mapping

