TerrainMaterialInfoclass

Information about terrain materials at a specific position

objectTerrainMaterialInfo
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Terrain.TerrainMaterialInfo

Methods2

Showing 2 methods

public int GetDominantMaterialIndex()PUBLIC

Gets the dominant material index at this position based on blend factor

Returns:int

Properties6

Showing 6 properties

public int Sandbox.Terrain.TerrainMaterialInfo.BaseTextureId { get; set; }PUBLICGETSET

The base (primary) material index at this position

Returns:int

public float Sandbox.Terrain.TerrainMaterialInfo.BlendFactor { get; set; }PUBLICGETSET

Blend factor between base and overlay (0-1, where 0 = full base, 1 = full overlay)

Returns:float

public bool Sandbox.Terrain.TerrainMaterialInfo.IsHole { get; set; }PUBLICGETSET

Whether this position is marked as a hole

Returns:bool

public int Sandbox.Terrain.TerrainMaterialInfo.OverlayTextureId { get; set; }PUBLICGETSET

The overlay (secondary) material index at this position

Returns:int

On this page