CompactTerrainMaterialclass

Compact terrain material encoding with base/overlay texture blending. Packed format (32-bit uint)

objectCompactTerrainMaterial
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.CompactTerrainMaterial

Constructors2

Showing 2 constructors

Properties5

Showing 5 properties

public byte Sandbox.CompactTerrainMaterial.BaseTextureId { get; set; }PUBLICGETSET

Base texture ID (0-31)

Returns:byte

public byte Sandbox.CompactTerrainMaterial.BlendFactor { get; set; }PUBLICGETSET

Blend factor between base and overlay (0-255).

Returns:byte

public bool Sandbox.CompactTerrainMaterial.IsHole { get; set; }PUBLICGETSET

Whether this pixel is marked as a hole

Returns:bool

public byte Sandbox.CompactTerrainMaterial.OverlayTextureId { get; set; }PUBLICGETSET

Overlay texture ID (0-31)

Returns:byte

On this page