Api Sandbox CompactTerrainMaterial
struct

CompactTerrainMaterial

public sealed struct CompactTerrainMaterial

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

Constructors

CompactTerrainMaterial(UInt32 packed)
CompactTerrainMaterial(Byte baseTextureId, Byte overlayTextureId, Byte blendFactor, Boolean isHole)

Properties

Name Type Description
BaseTextureId Byte Base texture ID (0-31)
OverlayTextureId Byte Overlay texture ID (0-31)
BlendFactor Byte Blend factor between base and overlay (0-255).
IsHole Boolean Whether this pixel is marked as a hole
Packed UInt32 Raw packed value
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.CompactTerrainMaterial