DZTFIX KATSU - Ultimate Water Shaders for Unity URP - FFT Ocean, Underwater & Stylized Water

β–Ά SHOWCASE VIDEO

πŸ“˜ DOCUMENTATION

Ultimate Water Shaders is a water toolkit for Unity URP: a real-time FFT ocean, stylized and mobile water, 7 art styles, an underwater view, coast waves, rivers, waterfalls and floating objects. Drag a prefab into your scene, choose a look and press Play.

Requires Unity 6000.5 or newer and URP. Tested with Unity 6000.5.6f1 and URP 17.5. Earlier Unity 6 releases have not been tested. The Built-in pipeline and HDRP are not supported.

🌊 FFT ocean

  • 256 x 256 FFT on the GPU with a JONSWAP wave spectrum. The mesh follows the camera to the horizon.

  • 7 one-click sea states: Calm Lake, Gentle Sea, Tropical, Open Sea, Large Swells, Rough Sea, Storm. You can also create your own.

  • Wave height, wind, fetch, choppiness and wave direction, in real-world units.

  • Whitecaps that build up and fade, sun glint, light through the crests, refraction and sky reflections.

β›΅ Floating objects

  • Add one component to a Rigidbody with a collider. Float points are placed automatically, or you can place your own.

  • Self Righting helps tipped objects turn upright again.

  • Works with the FFT ocean, the shared waves of the stylized water, or a flat water level. A script can ask for the height of the sea at any point.

🀿 Underwater

  • Turns on when the camera goes below the surface: fog, color absorption, light that fades with depth, caustics and a gentle wobble.

  • A waterline across the lens when the camera is half under water.

  • With the Ocean material, you see the sky through the surface from below (Snell's window).

🏝️ Coast, rivers and waterfalls

  • Coast Maker: bake once, and waves roll toward the shore with foam. Works with the Ocean and Stylized Water shaders. The ground needs colliders.

  • Water Spline: place points in the Scene view to make a river or a waterfall, with a different width at each point if you need it.

  • Rivers have flow, depth color and bank foam, and get faster and foamier on steeper parts. Waterfalls turn white as they fall. A mist and spray prefab is included.

🎨 Stylized, art style and mobile water

  • Stylized Water: 9 presets with color by depth, optional color bands, shore lines, foam and sparkles.

  • 7 art styles, 15 presets: Anime, Low Poly, Pixel, Watercolor, Comic, Neon, Magic.

  • Mobile Water: a lighter unlit shader with 5 presets and a switch that turns off the depth texture features. It has not been tested on a phone yet.

πŸ› οΈ Easy to set up

  • One menu command turns on the URP textures the water needs and adds the underwater pass.

  • Material settings are grouped and each group can be reset. Component inspectors have sea state buttons, coast baking and spline editing.

  • C# source code is included.

πŸ“¦ What's included

  • 13 shaders: Ocean, Stylized, Mobile, River, Waterfall, Underwater and 7 art styles. Also 1 compute shader for the FFT ocean.

  • 10 prefabs, 5 demo scenes and 7 sea states.

  • 29 presets (9 stylized, 15 art style, 5 mobile), 3 ocean materials, 1 river and 1 waterfall material.

  • 8 textures: 6 at 1024 x 1024, 1 at 512 x 512 and 1 at 128 x 128.

  • PDF documentation (offline).

The boat, buoys, rocks and island in the demos are simple example objects. The fishing boat, cliffs and cloudy sky in the main image are not included. Its water uses the Ocean shader from this package with custom wave and material settings, not one of the ready presets.

βš™οΈ Good to know

  • The FFT ocean needs compute shaders. Floating on it also needs asynchronous GPU readback.

  • Use one FFT ocean, one Water Manager, one Underwater and one Coast Maker per scene.

  • Objects do not make ripples or wakes. The ocean does not hide itself inside boats. Transparent objects are not visible through the water.

  • Floating objects do not react to coast waves. In a storm, steep waves can cover small objects for a moment.

  • The water reacts to the main light only, not to additional lights.

  • Tested in the Windows editor. A Windows build was also made, and its ocean scene ran without errors. Phones, consoles, macOS, Linux, WebGL and VR / XR have not been tested.

Questions or support: Discord discord.gg/jpKYgWSTZd