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.
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-opticsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/scottstts/Threejs-Awesome-Graphics-Agent-Skills /tmp/Threejs-Awesome-Graphics-Agent-Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-water-optics ~/.gemini/antigravity-cli/skills/threejs-water-opticsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-water-optics in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
