Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

waterFragment

const waterFragment: string

Stylized water, for a Shader: uColor is the deep water’s colour, uWaveSize the waves’ size in metres (1 is a pond’s ripples), uWaveSpeed how fast they drift (0 holds them) and uRound 1 to keep only the circle inside the plane, a pond, or 0 for the whole plane. One pass: no depth texture and no second render, so a phone can draw it.