Skip to content

MaterialWater

Type

MaterialWater configures optics, foam, flow, and waves for "Water" materials.

Absorption

Field
Absorption: Vector3?

Absorption is the Vector3 light absorption rate per unit of depth (default Vector3.new(0, 0, 0)).

DepthScale

Field
DepthScale: number?

DepthScale scales optical water depth (default 1).

Refraction

Field
Refraction: number?

Refraction sets underwater distortion strength (default 0).

FoamScale

Field
FoamScale: number?

FoamScale scales wave-crest foam intensity (default 1).

FoamDepth

Field
FoamDepth: number?

FoamDepth sets the shoreline depth in units where foam appears (default 0).

FlowSpeed

Field
FlowSpeed: number?

FlowSpeed sets the animation speed for FlowMap and Foam (default 0).

FlowScale

Field
FlowScale: number?

FlowScale sets the UV repeat scale for FlowMap and Foam (default 1).

WaveAmplitude

Field
WaveAmplitude: number?

WaveAmplitude scales wave height (default 0). When WaveAmplitude is nonzero, box water parts displace their top face and cast caustics.

WaveScale

Field
WaveScale: number?

WaveScale scales spatial wave frequency (default 1).

WaveSpeed

Field
WaveSpeed: number?

WaveSpeed scales wave speed (default 0).

FlowMap

Field
FlowMap: string?

FlowMap is the flow normal map asset ID, or nil.

Foam

Field
Foam: string?

Foam is the foam texture asset ID, or nil.