---
title: "Water Tool (Legacy) - s&box library"
description: "New version: https://sbox.game/redsnail/watertool2"
canonical: "https://sbox.watch/zh-cn/libraries/redsnail/watertool/"
generated_at: "2026-11-27T17:32:25.418Z"
---

# Water Tool (Legacy)

New version: https://sbox.game/redsnail/watertool2

- 类型: 库
- 标识符: redsnail.watertool
- 创作者: Red Snail
- 规范地址: https://sbox.watch/zh-cn/libraries/redsnail/watertool/
- Markdown: https://sbox.watch/zh-cn/libraries/redsnail/watertool/index.md
- sbox.game: https://sbox.game/redsnail/watertool/
- 生成时间: 2026-11-27T17:32:25.418Z

## 统计

- 24小时热度: +0
- Terry 评分: 85%
- 收藏: 26
- 好评: 25
- 差评: 1
- 更新时间: 2026年10月5日
- 创建时间: 2026年4月20日
- 大小: 9.0 MB
- 文件: 161
- 标签: postprocess, shader, tool, water

## 描述

New version: https://sbox.game/redsnail/watertool2

This library is deprecated, thats why it's labeled as "Legacy Edition"

🌍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
https://www.youtube.com/watch?v=PLjWuyTeLTY
💾Source Code

💬My Discord



## More by Red Snail

| Package | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Road Tool (Legacy) | redsnail.roadtool | 0 | 10 | 20 | 88% | https://sbox.watch/zh-cn/libraries/redsnail/roadtool/index.md |
| Water Tool | redsnail.watertool2 | 0 | 4 | 2 | 43% | https://sbox.watch/zh-cn/libraries/redsnail/watertool2/index.md |
| Grass Tool | redsnail.grasstool | 0 | 2 | 1 | 27% | https://sbox.watch/zh-cn/libraries/redsnail/grasstool/index.md |
| Road Tool | redsnail.roadtool2 | 0 | 2 | 1 | 27% | https://sbox.watch/zh-cn/libraries/redsnail/roadtool2/index.md |
| Engine Bank Slicer | redsnail.enginebankslicer | 0 | 0 | 0 | -- | https://sbox.watch/zh-cn/libraries/redsnail/enginebankslicer/index.md |
| Flora Tool | redsnail.floratool | 0 | 0 | 0 | -- | https://sbox.watch/zh-cn/libraries/redsnail/floratool/index.md |
