Class CliffTextureLayer
A texture layer that appears on steep faces, weighted by slope angle and optionally by height.
[Serializable]
public class CliffTextureLayer : TerrainTextureLayer
- Inheritance
-
CliffTextureLayer
- Inherited Members
Constructors
CliffTextureLayer()
public CliffTextureLayer()
Fields
cliffHeightRange
[MinMaxRange(0, 1)]
public MinMaxRange cliffHeightRange
Field Value
cliffSlopeFalloff
[Tooltip("How sharply the cliff texture blends based on slope angle.")]
[Range(1, 20)]
public float cliffSlopeFalloff
Field Value
maxCliffAngle
[Tooltip("Maximum slope angle in degrees for this cliff texture.")]
[Range(0, 90)]
public float maxCliffAngle
Field Value
minCliffAngle
[Header("Cliff Configuration")]
[Tooltip("Minimum slope angle in degrees for this cliff texture to appear.")]
[Range(0, 90)]
public float minCliffAngle
Field Value
useCliffHeightConstraint
[Tooltip("Additional height constraint for cliff placement.")]
public bool useCliffHeightConstraint
Field Value
Methods
GetCliffWeight(float, float)
Weight of this cliff texture at a slope angle and normalised height, 0-1.
public float GetCliffWeight(float slopeAngle, float normalizedHeight)