What it does

Triplanar projects a texture from three directions and blends the projections according to the surface normal. This can reduce visible seams from mesh UVs. The direction a surface faces determines each projection's contribution.

Figure: Project along X using YZ, along Y using XZ, and along Z using XY, then blend using surface-normal weights.
Figure: Project along X using YZ, along Y using XZ, and along Z using XY, then blend using surface-normal weights.

How to use it

Build three planar coordinates from position and weight them by normal direction. Position and normal must use matching spaces when using the Triplanar node.

A concrete example

This can reduce UV seams on rocks. World-space coordinates can align pattern scale across objects but may cause a moving rock to appear to travel through the pattern.

How to check it

  1. Move, rotate and non-uniformly scale test cubes/spheres, checking density and blend boundaries.
    Match image coordinates to the surface
    Match image coordinates to the surface
  2. Normal-map blending also requires the appropriate directional conversion.
    Match image coordinates to the surface
    Match image coordinates to the surface

Limitations

Three projections cost samples; higher blend exponents favor dominant axes. Normal maps need suitable transforms.

References