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
Components
WaterOverlay
chevron_left
Components
class
WaterOverlay
Constructors
functions
WaterOverlay
Properties
data_object
Body
data_object
NormalDistortion
data_object
Roughness
data_object
Size
data_object
SortLayer
data_object
Texture
data_object
Tint
data_object
Transmission
WaterOverlay
Projects a colour/alpha texture onto the water surface at this object's position. Leaves, dirt, scum and foam can use rough coverage; oil can use low roughness and translucent tint.
class
Sandbox
.
account_tree
extends
Component
sealed
Sandbox.Engine
build
Constructors
1
WaterOverlay
(
)
data_object
Properties
8
Body
WaterBody
Automatically resolved water surface at the object's position. Uses the nearest active surface footprint. Finite surfaces take precedence at equal distances.
NormalDistortion
float
Maximum texture displacement in inches from the animated water normals. Zero disables texture distortion; lighting still uses the animated water normals.
Roughness
float
Surface roughness under the texture's alpha. Use low values for oil and higher values for foam or debris.
Size
Vector2
Footprint along the object's projected X and Y axes, in inches, multiplied by its XY scale.
SortLayer
int
Higher layers blend over lower ones. Equal layers use a stable component identity order.
Texture
Texture
Colour and coverage alpha. Defaults to the existing standalone foam wake.
Tint
Color
Colour tint and opacity. Lower alpha leaves some water transmission visible.
Transmission
float
Transmission through covered pixels. Zero suits opaque debris and foam; higher values allow clear oil films to change roughness without hiding the water below.
Inheritance
Component
WaterOverlay
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.