Water Tool

Library

A fully complete water library including GPU compute shaders, underwater post processing and more!

Red Snail updated 3d ago 9 MB engine 29
thumb_up 24 open_in_new View on sbox.game

🌍Summary

A fully featured water rendering and simulation library for s&box. Featuring shader driven water surfaces with physically based buoyancy, waves simulation, and hull mesh exclusion.

📗Features

Rendering
• Clipmap water surface Compute shader driven mesh that tiles out from the camera for infinite looking water with LODs
• WaterDefinition profiles Asset based wave configuration for Ocean, Lake, River, Pool, or custom types. Controls detail waves and swell waves independently (intensity, speed, scale, direction, octaves, lacunarity, persistence, steepness)
• Multi-octave Gerstner waves Evaluates wave displacement and velocity at any world position for use in gameplay and physics

Physics & Buoyancy
• Buoyancy component 9-point hull sampling with spring/damping forces, drag, angular drag, and horizontal wave transport
• Air volume leaking Buoyancy degrades as an object becomes fully submerged, simulating flooding if needed

Exclusion Volumes
• WaterExclusionVolume OBB based volume that suppresses water surface rendering inside it (for submarine interior, underwater bases, etc.)
• HullWaterExclusionVolume When placed on the same GameObject as a `ModelRenderer` it will extracts the physics collision mesh, uploads the triangle list to the GPU, and performs a per-pixel point-in-mesh test using the Möller–Trumbore ray intersection algorithm. It will correctly excludes the entire interior of any convex or concave hull (Really useful for a boat interior)

Post-Processing
• SimpleFog Lightweight atmospheric fog with configurable color, intensity, and opacity
• WobbleEffect Screen space ripple/distortion with configurable frequency, amplitude, and speed

🎞️Tutorial

💾Source Code
💬My Discord

82
Total Users
261
Total Sessions
1.7 days
Total Playtime
Positive Negative
info
How this works: This chart tracks all anonymous thumbs up/down votes, not just the written reviews below. Playtime is permanently recorded at the exact moment the user casts their vote. Data is exactly as returned by the Facepunch API.
0m - 1m
1
1
32m - 1.1h
1
1
1.1h - 2.1h
1
1
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: redsnail.watertool
Created: 2026-04-20 21:00 UTC
Updated: 2026-10-05 10:18 UTC
Type: library
Public: Yes
Version: 410705
files: 161
Size: 9.0 MB
Engine Version: 29
Asset Version ID: 410705
Version Created: 2026-10-05 10:18 UTC
Hash: 1791478544
Manifest: Open manifest

more_horiz Additional Properties

Compiler: {"RootNamespace":"Sandbox","DefineConstants":"SANDBOX","NoWarn":"1701;1702;1591;","WarningsAsErrors":"","TreatWarningsAsErrors":false,"Nullables":false,"ReleaseMode":"Release","AssemblyReferences":[],"ReplacementDirectives":{".Server.cs":"SERVER"},"IgnoreFolders":[],"DistinctAssemblyReferences":[]}
new_releases Latest Update Oct 5, 2026
Changes on 2026-10-05
⚠️IMPORTANT⚠️ Jun 11, 2026
Fixed
  • A crash issue with the latest S&box update !
  • If you're not able to download the new tool update in your project (crash at editor startup), please make sure to follow this:
  • The thing is, since it crash the editor almost instanly you will not be able to update the tool through the editor, so the alternative is to download my updated library in a fresh S&box project, this way you get the latest update downloaded, then move over the folder `redsnail.watertool` from the `Libraries` folder into your own project !
  • This way you will have your water tool updated and you will be able to launch your editor safely without crashing !
  • Thx for reading, have a nice day !
New Update Jun 10, 2026
Added
  • Water displacement (ripples) for props and players
  • Water splash sounds and water swimming loop for the player
  • Underwater audio manager (When underwater all the sounds in your environment are muffled)
  • Missing normals displacement in the water shader
Fixed
  • Issue with circular mode on water quads wasn't working with water displacement
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.