Tangent Inclination Masker

Normal Map to Slope Angle Mask Generator (Snow, Moss & Dust)

Turn any tangent-space normal map into a smoothstepped grayscale slope mask based on exact surface tilt angle—ideal for blending moss, settled dust, snow caps, or steep rock layers in 3D shaders.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output

Slope mask [12°–42°] · Avg Surface Angle 11.9° · Masked Coverage 24.5%

Input Preview
Processed Output
Open Full 4-Map PBR Studio

Common natural accumulation slope thresholds

Surface LayerMin AngleMax AngleInvert Mask?
Settled Snow / Thick Dust10°32°Yes (White on flat tops)
Damp Moss / Lichen15°45°Yes (White on gentle slopes)
Exposed Steep Cliff Rock30°60°No (White on steep slopes)

Computing exact per-pixel surface inclination from Blue (Z)

In a unit-length tangent-space normal map, the Blue channel stores cos(theta)—the cosine of the surface tilt relative to the base polygon normal. Applying arccos(Nz) yields exact inclination angles from 0 degrees (flat) to 90 degrees (vertical cliff).

Smoothstep transitions without jagged binary aliasing

Adjusting Min and Max Slope Angles creates a Hermite smoothstep ramp that avoids harsh pixelated borders when layering snow or moss textures across terrain and architectural stone.

Frequently asked questions

Does OpenGL vs DirectX green channel polarity change the slope angle?

No. Inclination angle depends only on the Z component (Blue channel), which is identical in both OpenGL and DirectX normal maps.

How do I mask flat upward ledges instead of steep crevices?

Check Invert Output Values so low-angle flat areas render pure white (255) and steep slopes fade to black (0).

Why does a flat purple normal map produce an all-black mask?

Flat normals sit at 0 degrees; either lower Min Slope Angle near 0° or use a normal map with stronger surface relief.

Can I download the slope mask at full input resolution?

Yes—lossless grayscale PNG export preserves native resolution locally in your browser.

More free local PBR & normal map tools