Skip to main content
Annual billing

ThreeJS.net annual plans cost about 50% less than 12 monthly payments

Save

Ultra Water

A real-time lagoon: clear shallows, sand, waves and caustics

Source on GitHub

By Humpalumps. Open source under the MIT licence; hosted here with its licence, unmodified apart from a small script that lets ThreeJS.net embed it. The prompt below is our description of the work, not the author's. Third-party material: Parts adapted from three.js (MIT) and Dave Hoskins’ Hash without Sine (MIT); see THIRD_PARTY_NOTICES.md..

About this scene

An island lagoon in the sun: turquoise shallows over white sand, a deeper blue reef and open ocean behind, with waves, foam and caustics moving on the sand. It is a real-time ocean renderer for three.js on WebGL 2 with an FFT wave simulation. Drag to look around the lagoon.

How it is built

  1. 01

    Waves from a spectrum

    The surface comes from an FFT simulation, so the sea has realistic, never-repeating swell at little cost.

  2. 02

    Colour from depth

    How much water lies over the sand decides the colour, from glassy turquoise in the shallows to deep blue past the reef.

  3. 03

    Light on the floor

    Caustics drawn on the sand under the moving surface sell the clarity of the water.

Questions

Who made this?
Humpalumps on GitHub (Gelatin Games), released under the MIT licence; small parts adapted from MIT projects are credited in its third-party notices. ThreeJS.net hosts a build with the licence and notices, unmodified apart from a small embed script.

More examples