struct
TerrainMaterialInfo
public sealed struct TerrainMaterialInfo Information about terrain materials at a specific position
Properties
| Name | Type | Description |
|---|---|---|
BaseTextureId | Int32 | The base (primary) material index at this position |
OverlayTextureId | Int32 | The overlay (secondary) material index at this position |
BlendFactor | Single | Blend factor between base and overlay (0-1, where 0 = full base, 1 = full overlay) |
IsHole | Boolean | Whether this position is marked as a hole |
BaseMaterial | TerrainMaterial | The base terrain material resource (if available) |
OverlayMaterial | TerrainMaterial | The overlay terrain material resource (if available) |
Methods
TerrainMaterial GetDominantMaterial() Gets the dominant material at this position based on blend factor
Int32 GetDominantMaterialIndex() Gets the dominant material index at this position based on blend factor