Terrain_Util
Description
- Derived from
-
GpuCode abstract
Full source code is included in the Tinman 3D SDK download. |
Helper methods for common terrain functionality.
Public / Methods
DisplacementFade
Fades the given displacement value to zero when reaching the end of the layer blend range.
This will avoid Z-fighting artefacts with adjacent, non-displacement terrain layers.
LayerBlendClip
Computes the distance-based layer blend factor.
The current fragment is discarded if the resulting blend factory is less than zero.