ocean-water

Installation
SKILL.md

Ocean water

Target: Three.js 0.187.0, three/webgpu and TSL node materials from three/tsl; WebGPU only, no WebGL fallback, no GLSL strings.

This is the implementation kit for open water. The principles (reflection vs transmission, depth absorption, foam placement, scale variants) are in the water skill; read that first.

Two companion files, copy them into the project; they import only from three/webgpu and three/tsl:

  • scripts/ocean.tsl.js: class Ocean, plus OCEAN_DEFAULTS, OCEAN_PRESETS, buildWaveSet(), makeWaterGeometry()
  • scripts/planar-reflection.js: class PlanarReflection, planarReflectionSample(), PLANAR_REFLECTION_DEFAULTS

What it is

Installs
103
GitHub Stars
8
First Seen
Oct 30, 2026