MaterialWater¶
Type
MaterialWater configures optics, foam, flow, and waves for "Water" materials.
Absorption¶
Absorption is the Vector3 light absorption rate per unit of depth (default Vector3.new(0, 0, 0)).
DepthScale¶
DepthScale scales optical water depth (default 1).
Refraction¶
Refraction sets underwater distortion strength (default 0).
FoamScale¶
FoamScale scales wave-crest foam intensity (default 1).
FoamDepth¶
FoamDepth sets the shoreline depth in units where foam appears (default 0).
FlowSpeed¶
FlowSpeed sets the animation speed for FlowMap and Foam (default 0).
FlowScale¶
FlowScale sets the UV repeat scale for FlowMap and Foam (default 1).
WaveAmplitude¶
WaveAmplitude scales wave height (default 0). When WaveAmplitude is nonzero, box water parts displace their top face and cast caustics.
WaveScale¶
WaveScale scales spatial wave frequency (default 1).
WaveSpeed¶
WaveSpeed scales wave speed (default 0).
FlowMap¶
FlowMap is the flow normal map asset ID, or nil.
Foam¶
Foam is the foam texture asset ID, or nil.