s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
TerrainMaterialInfo
chevron_left
Classes
struct
TerrainMaterialInfo
search
Properties
data_object
BaseMaterial
data_object
BaseTextureId
data_object
BlendFactor
data_object
IsHole
data_object
OverlayMaterial
data_object
OverlayTextureId
Methods
functions
GetDominantMaterial
functions
GetDominantMaterialIndex
TerrainMaterialInfo
Information about terrain materials at a specific position
struct
Sandbox.Terrain
.
sealed
Sandbox.Engine
data_object
Properties
6
BaseMaterial
TerrainMaterial
The base terrain material resource (if available)
BaseTextureId
int
The base (primary) material index at this position
BlendFactor
float
Blend factor between base and overlay (0-1, where 0 = full base, 1 = full overlay)
IsHole
bool
Whether this position is marked as a hole
OverlayMaterial
TerrainMaterial
The overlay terrain material resource (if available)
OverlayTextureId
int
The overlay (secondary) material index at this position
functions
Methods
2
GetDominantMaterial
(
)
TerrainMaterial
Gets the dominant material at this position based on blend factor
GetDominantMaterialIndex
(
)
int
Gets the dominant material index at this position based on blend factor
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.