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-spectral-ocean

Skill by scottstts

Builds large procedural oceans and coast transitions in Three.js using FFT, cascade, and shallow-water methods. For developers who need spectral sea surfaces, coastal breakers, and above and below surface water views.

  • Score 80
  • 1.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install threejs-spectral-ocean

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-spectral-ocean ~/.claude/skills/threejs-spectral-ocean

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

Step-by-step: install threejs-spectral-ocean in Claude Code

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

About

Threejs-spectral-ocean is an agent skill for building large procedural oceans and coast transitions in Three.js. It covers WebGPU/TSL FFT oceans with multi-cascade wavelength bands, coastal breakers, shallow-water beach waves, signed-distance coastlines, and wet-sand transitions. It also covers rock-impact spray and above and below surface optics, including Snell-window views, total internal reflection, and underwater absorption.

The skill gives a build order: define the sea-state spectrum, partition wavelengths into disjoint cascades, validate the inverse FFT, evolve fields in frequency space, and persist Jacobian foam. It points to reference documents and example modules for the cascade, FFT, material, and coastal systems. It is aimed at Three.js developers who need a physically grounded ocean with deterministic seeds and GPU validation.

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

What it can do

  • Spectral FFT oceanBuilds open-water surfaces from a sea-state spectrum, wavelength cascades, and FFT-based displacement and derivatives.
  • Coastal breakers and swashCreates breakers, shallow-water swash films, and wet-sand transitions along signed-distance coastlines.
  • Finite-volume beach wavesUses a positivity-preserving shallow-water solver for beach waves, with impact-triggered spray.
  • Above and below surface opticsCovers Snell-window views, total internal reflection, underwater absorption, and water-tinted seafloor caustics.
  • Jacobian foamDetects breaking from the horizontal-displacement Jacobian and persists whitecaps, windrows, and foam history.
  • Caustic god raysAdds underwater caustics and god rays as part of the submerged view.
  • Pixel-footprint spectral LODScales spectral detail by pixel footprint so distant bands fade to their mean.
  • Forward projection across interfacesRasterizes opposite-medium structures at their refracted screen positions when the camera changes medium.
  • GPU and seed validationChecks the FFT with impulse tests and uses a deterministic seed and fixed-camera capture for comparisons.
  • Example modulesPoints to stylized, submerged, coastal breaker, and beach wave example systems to study or reuse.

What you need

  • Three.js
  • WebGPU/TSL support for the production architecture
  • Power-of-two grid size for the FFT

Try asking

  • Build a WebGPU FFT ocean with multi-cascade wave bands in Three.js
  • Add coastal breakers and wet-sand transitions to my Three.js beach scene
  • Show a Snell window and god rays for a camera underwater in Three.js

Good to know

  • The WebGL2 fragment-FFT backend is an explicit compatibility tier; the production target is WebGPU/TSL.
  • The FFT grid must be a power of two.
  • Open-water interfaces need forward projection, not screen-space refraction.
  • Bounded pools seen only from air should use the threejs-water-optics skill instead.

Security check

A

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

Checked automatically: skills/threejs-spectral-ocean/SKILL.md, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/coastal-breaker-ocean.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/chain.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/coast.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/foam.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/noise.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/ocean.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/tsl.js, skills/threejs-spectral-ocean/examples/coastal-breaker-ocean/source/wave-field.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • agents/openai.yaml564 B
  • assets/coastal-breaker-ocean/sand-base.jpg1054 KB
  • assets/coastal-breaker-ocean/sand-normal.jpg1544 KB
  • assets/ocean-beach-waves/THIRD_PARTY_LICENSES.md1 KB
Show all 64 files
  • assets/ocean-beach-waves/initial-state.bin.gz2023 KB
  • assets/ocean-beach-waves/solver-kernels.wasm4 KB
  • assets/stylized-above-below-ocean/foam.webp42 KB
  • assets/stylized-above-below-ocean/sand.webp144 KB
  • examples/coastal-breaker-ocean/coastal-breaker-ocean.js7 KB
  • examples/coastal-breaker-ocean/example-render.jpeg182 KB
  • examples/coastal-breaker-ocean/source/chain.js11 KB
  • examples/coastal-breaker-ocean/source/coast.js8 KB
  • examples/coastal-breaker-ocean/source/foam.js3 KB
  • examples/coastal-breaker-ocean/source/noise.js13 KB
  • examples/coastal-breaker-ocean/source/ocean.js10 KB
  • examples/coastal-breaker-ocean/source/tsl.js30 KB
  • examples/coastal-breaker-ocean/source/wave-field.js3 KB
  • examples/ocean-beach-waves/example-render.jpeg104 KB
  • examples/ocean-beach-waves/ocean-beach-waves.js561 B
  • examples/ocean-beach-waves/source/coast.js4 KB
  • examples/ocean-beach-waves/source/noise.js1 KB
  • examples/ocean-beach-waves/source/shading.js15 KB
  • examples/ocean-beach-waves/source/simulation.js9 KB
  • examples/ocean-beach-waves/source/solver-accelerator.js2 KB
  • examples/ocean-beach-waves/source/solver-kernels.ts5 KB
  • examples/ocean-beach-waves/source/spray.js3 KB
  • examples/ocean-beach-waves/source/surface.js3 KB
  • examples/ocean-beach-waves/source/terrain-grid.js692 B
  • examples/ocean-beach-waves/source/world.js5 KB

And 34 more files on GitHub.

Alternatives to threejs-spectral-ocean

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

threejs-spectral-ocean: common questions

Does this skill require WebGPU?

The production architecture is WebGPU/TSL. A WebGL2 fragment-FFT backend is included as an explicit compatibility tier.

Can it render a camera underwater?

Yes. The submerged Snell ocean example covers a camera beneath a WebGPU spectral surface, including total internal reflection and god rays.

Which related skill should I use for other effects?

Use threejs-water-optics for air-side shallow-water optics and bounded water, threejs-procedural-vfx for crest spray, and threejs-visual-validation for cross-seed and GPU evidence.

How do I install threejs-spectral-ocean?

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

Is threejs-spectral-ocean free?

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

Is threejs-spectral-ocean safe to use?

It scores 80 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-spectral-ocean?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

threejs-spectral-ocean Install

Add to stack

Loading.