s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
CompactTerrainMaterial
chevron_left
Classes
struct
CompactTerrainMaterial
Constructors
functions
CompactTerrainMaterial
Properties
data_object
BaseTextureId
data_object
BlendFactor
data_object
IsHole
data_object
OverlayTextureId
data_object
Packed
CompactTerrainMaterial
Compact terrain material encoding with base/overlay texture blending. Packed format (32-bit uint)
struct
Sandbox
.
sealed
Sandbox.Engine
build
Constructors
1
CompactTerrainMaterial
(
packed
)
data_object
Properties
5
BaseTextureId
Byte
Base texture ID (0-31)
BlendFactor
Byte
Blend factor between base and overlay (0-255).
IsHole
bool
Whether this pixel is marked as a hole
OverlayTextureId
Byte
Overlay texture ID (0-31)
Packed
UInt32
Raw packed value
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.