WaterContactFoam
WaterContactFoam(
props):Element
Rings what it holds with the sea’s foam where it stands in the water,
hugging its outline at the waterline, with a band of the shallow colour
round it, as the sea’s own shore has: a rock in the shallows, a pile, a
moored hull. The sea’s contactFoamWidth and contactShallowWidth set
how wide. A mesh that moves, turns, scales, is shown or hidden, here or
by a group over the wrapper, or loads late takes its ring within a
quarter of a second, and so does an instanced copy moved in place, so
a batch whose copies move every frame captures four times a second; a
skinned pose and a morph keep the ring they had. Draws inside Views,
on WebGL.
The ring follows the outline seen from above of what it holds, where the wrappers hold surfaces both over and under the water: a closed mesh, such as a rock or a pile, rings where it crosses the water, and a bridge over the sea or a wreck under it alone rings nothing. A clear sea reads the top of what stands under it, so the water over a wrapped wreck or coral fades by the depth to it rather than to the bed. A wrapped bridge straight over a wrapped wreck rings as one thing crossing the water. An overhang rings at its widest edge. A surface with no underside, such as an island model’s ground, rings where it dips under the water.
The capture covers a square the map’s size: over the map while the view takes any of it, and past the map round the middle of what the view takes of the water, so a thing far out at sea rings too.
Unity’s water names its own foam source a foam generator; this one names what it draws, foam where a thing meets the water, and makes no trail behind a moving thing.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
WaterContactFoamProps |
Returns
Section titled “Returns”Element