Log inGet started
World

Pocket Putt Islands

README.md

animWater

Rivers that flow at a speed stated in metres per second, with no textures. The surface moves by offset = flow_velocity * time + flow_phase (m/s and m, following the wearer's am.flow and am.flowPhase values written by animatedMaterials' Live) divided by tile_size for UV repeats, so a live change of speed or direction never makes it jump. Every field is periodic over one UV repeat, the motion included, so it tiles seamlessly.

The swatches are opaque, so the water column is worked out inside the shader: flow-mapped ripples (two noise layers carried downstream at different speeds, churned along a slow swirl with a two-phase cross-fade, plus standing waves that stay put over the stones) give the normal; for the clear river the view ray is refracted through the rippled surface onto a pebble bed of varying depth (parallax), with sun caustics on the stones and Beer-Lambert absorption over the real path (water_color per absorb_distance, the water's own colour deep_color where the bed fades), weighted by 1 - Fresnel; the engine's PBR lighting adds the sky and sun reflection on the glossy surface. Foam and scum are thin streaks drawn out along the flow direction, carried with the surface, in lanes (foam 0..1).

style 0 clear mountain river (pebble bed seen through glassy green water), 1 murky lowland river (opaque silty brown-green water, drifting silt clouds, pale scum streaks), 2 toon water (flat bands in bed_color / water_color / deep_color, white foam lines, twinkling four-point sparkles and a crisp cel sun highlight, the last two painted white into the albedo so the engine lights them). Also depth (metres), roughness, ripple_height (metres), and highlight (toon water only, 0..1, default 1): the strength of the cel sun highlight; lower it for steep, top-down cameras, where the glint can cover large pale patches. Used by animatedMaterials' riverClear, riverMurky and waterToon.