Table of Contents

Class CliffTextureLayer

Namespace
FishMMO.Shared.Biomes
Assembly
FishMMO.Shared.dll

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

MinMaxRange

cliffSlopeFalloff

[Tooltip("How sharply the cliff texture blends based on slope angle.")]
[Range(1, 20)]
public float cliffSlopeFalloff

Field Value

float

maxCliffAngle

[Tooltip("Maximum slope angle in degrees for this cliff texture.")]
[Range(0, 90)]
public float maxCliffAngle

Field Value

float

minCliffAngle

[Header("Cliff Configuration")]
[Tooltip("Minimum slope angle in degrees for this cliff texture to appear.")]
[Range(0, 90)]
public float minCliffAngle

Field Value

float

useCliffHeightConstraint

[Tooltip("Additional height constraint for cliff placement.")]
public bool useCliffHeightConstraint

Field Value

bool

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)

Parameters

slopeAngle float
normalizedHeight float

Returns

float