UV-Free Terrain & Cliff Math
Triplanar Projection Blend Sharpness & Weight Calculator
Dial exact triplanar blend sharpness without muddy double-ghosting or harsh seams on cliffs and sculpted rocks: test any surface slope tilt and exponent (1 to 16), inspect X/Y/Z projection percentages, and copy ready GLSL/HLSL code.
// Triplanar projection blend weights (sharpness = 4.0) vec3 blend = pow(abs(worldNormal), vec3(4.0)); blend /= max(blend.x + blend.y + blend.z, 0.0001); vec4 albedo = texX * blend.x + texY * blend.y + texZ * blend.z;
Triplanar blend exponent trade-offs on organic & architectural surfaces
| Sharpness Exponent | Seam Band Width | Visual Appearance |
|---|---|---|
| 1.0 – 2.0 | Wide (~65°–90°) | Very soft blend, risks ghosted double bricks |
| 4.0 – 6.0 | Balanced (~36°–45°) | Natural rock, concrete, cliff, and snow transitions |
| 8.0 – 16.0 | Tight (~22°–32°) | Crisp architectural masonry & modular corners |
Why triplanar blending needs normalized power weights
Taking pow(abs(worldNormal), sharpness) concentrates texture weight onto the dominant cardinal axis, eliminating ghosted overlaps across 45-degree rock faces. Dividing by the sum of all three components ensures total energy always equals exactly 1.0.
Triplanar normal maps require Whiteout or UDN swizzling
While Albedo and Roughness can be linearly summed with triplanar weights, tangent-space normal maps projected along X, Y, and Z must be swizzled into world space (Whiteout or UDN triplanar normal blending) so lighting reacts accurately from every direction.
Frequently asked questions
Why does a low triplanar sharpness (1.0) make stone textures look blurry on slopes?
At sharpness 1.0, a 45-degree slope blends 50% top projection and 50% side projection equally, creating translucent ghosting across pebbles and bricks.
How many extra texture samples does triplanar projection cost?
Full triplanar samples each map 3× (X, Y, and Z planes); using packed ORM maps keeps total fetches manageable on real-time GPUs.
Does triplanar projection need seamless tileable textures?
Yes—non-seamless textures will show repeating grid lines across every world-space meter. Repair seams first in our Seamless Texture Generator.
Does this math match Unreal Engine's WorldAlignedTexture node?
Yes—power-normalized abs(WorldNormal) is the exact mathematical foundation behind WorldAlignedTexture and Unity Shader Graph Triplanar.