Slope - CraftKontrol/GroundGen-for-Touchdesigner GitHub Wiki

2D Operator Terrain Network Splatmap Network

Introduction

The Slope operator calculates the steepness of terrain at each point or pixel. This information is useful for driving slope-based texturing, biome assignment, or visualizations such as highlighting cliffs and steep areas.

Parameters
  • Radius: Determines the neighborhood size used for slope calculation. Larger radii smooth out slope values, while smaller radii capture fine details.
  • Strength: Controls the intensity of the slope effect, making steep areas more pronounced.
  • Threshold: Sets the minimum slope value to consider, allowing you to filter out gentle slopes.
Usage

Apply the Slope operator in the Terrain Network or Splatmap Network to identify and visualize steep terrain regions. Use slope data to drive texture blending (e.g., rock on cliffs, grass on gentle slopes), mask generation, or to enhance terrain analysis. Adjust parameters to fine-tune the detection and appearance of slopes for your specific needs.