Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

threejs-water-optics

Skill by scottstts

threejs-water-optics is an agent skill for building analytic and bounded water in Three.js. It covers river flow, pool simulation, shallow-water optics, caustics, Fresnel and absorption. It is aimed at developers writing Three.js water scenes.

  • Score 85
  • 1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install threejs-water-optics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/scottstts/Threejs-Awesome-Graphics-Agent-Skills /tmp/Threejs-Awesome-Graphics-Agent-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-water-optics ~/.claude/skills/threejs-water-optics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install threejs-water-optics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant to build water in Three.js. It treats water as geometry motion, surface orientation and a participating optical layer, not as a blue transparent material. The skill sets a build order: define wave bands, derive normals from the same waves, choose displaced or normal-only geometry, and blend reflection and refraction through side-aware Fresnel.

The skill points to three example implementations. They cover a bounded RGBA heightfield pool with local drops and draggable-object ripples, a photoreal shallow-water system with FFT waves and RGB caustics, and a luminescent river with staggered shallow-water flow and advected foam. Reference files describe the rendering contracts. The skill is meant for developers who need production water effects in Three.js.

Written from the project's SKILL.md and checked against it.

What it can do

  • Analytic wave surfacesBuilds displaced water geometry and matching normals from shared multi-wave functions.
  • Bounded pool simulationRuns an RGBA heightfield pool with height, velocity and normal data, plus local drops.
  • Photoreal shallow waterUses gravity-capillary FFT waves, touch ripples, RGB caustics and diffraction glare.
  • Luminescent river flowSimulates staggered shallow-water flow with advected luminous excitation and foam.
  • Pool volume ray tracingRay-traces pool, water and sphere volume optics inside the shader.
  • Fresnel and absorptionApplies side-aware Fresnel, Beer-Lambert absorption and analytic sky reflection.
  • Screen refractionAdds heuristic screen-space refraction for an air-side camera above a bounded volume.
  • Foam and crest detailDerives crest foam from the shared wave response and filters unresolved normal bands.

What you need

  • Three.js

Try asking

  • Build a luminescent river with advected foam and RGB caustics in Three.js
  • Add an interactive pool with drops and draggable-sphere ripples
  • Make shallow water with FFT waves, Fresnel and caustics

Good to know

  • Screen refraction is heuristic and can sample foreground objects.
  • The photoreal-water example does not implement underwater viewing.
  • Refraction assumes an air-side camera above a bounded volume.
  • Large spectral ocean scenes are routed to a separate skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/threejs-water-optics/SKILL.md, skills/threejs-water-optics/examples/interactive-pool-volume/water-volume-system.js, skills/threejs-water-optics/examples/luminescent-water/luminescent-water.js, skills/threejs-water-optics/examples/photoreal-water/photoreal-water.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • agents/openai.yaml377 B
  • assets/interactive-pool-volume/tiles.jpg108 KB
  • assets/interactive-pool-volume/xneg.jpg23 KB
  • assets/interactive-pool-volume/xpos.jpg30 KB
Show all 19 files
  • assets/interactive-pool-volume/ypos.jpg16 KB
  • assets/interactive-pool-volume/zneg.jpg24 KB
  • assets/interactive-pool-volume/zpos.jpg22 KB
  • assets/photoreal-water/THIRD_PARTY_LICENSES.md1 KB
  • assets/photoreal-water/pebbles.js326 KB
  • examples/interactive-pool-volume/example-render.jpeg136 KB
  • examples/interactive-pool-volume/water-volume-system.js28 KB
  • examples/luminescent-water/example-render.jpeg224 KB
  • examples/luminescent-water/luminescent-water.js51 KB
  • examples/photoreal-water/example-render.jpeg313 KB
  • examples/photoreal-water/photoreal-water.js42 KB
  • references/luminescent-water.md4 KB
  • references/photoreal-water.md5 KB
  • references/water-surface-system.md5 KB

Alternatives to threejs-water-optics

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

threejs-water-optics: common questions

Does this skill support underwater camera views?

No. The photoreal-water example does not implement underwater viewing, and the screen-refraction recipe assumes an air-side camera above a bounded volume.

What is the difference between this skill and threejs-spectral-ocean?

This skill covers bounded water, river flow and shallow-water optics. The source says large seas with spectral cascades and coastal breakers belong to threejs-spectral-ocean.

Does it handle rain puddles?

Rain-driven puddle wetness and weather-coupled splashes are routed to threejs-precipitation-surfaces, not this skill.

How do I install threejs-water-optics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is threejs-water-optics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is threejs-water-optics safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to threejs-water-optics?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

threejs-water-optics Install

Add to stack

Loading.