Log inGet started
World

Tidewater: Oceans, Lakes, Rivers, Waterfalls, Swimming and Splashes Water Kit

Branchmain
Commit431c1b9967

README.md

fx_particle

The one surface shader every Tidewater water effect draws its particles with. A unit card (mesh.plane) is stood up in vertex_clip: facing the camera (facing 0), lying flat on the water (1, rings and foam patches), or facing the camera stretched along the particle's velocity (2, streaking spray and droplets). facing 3 leaves the mesh as it is, for the faceted low-poly chunks.

shape picks what the card draws: a lit water droplet, a soft spray/mist puff, an expanding ring, a dissolving foam patch, a bubble, a sparkle. look_mode draws it in one of the five Tidewater looks: realistic (lit beads with sun glints, soft scattering puffs), painted (brush-wobbled dabs in colour bands with paper grain), cartoon (solid white blobs with an inked outline and a hard highlight), lowpoly (hexagonal faceted cards and flat-shaded octahedron chunks), pixel (square pixels on the card, two tones, stepped fade).

Per-particle life (0..1) and a random seed arrive in shader_data lane 0 (data0 on the graph's points). Draw with alphaBlend, no depth write, no culling.