Documentation

ShoreLine Pro

Add-ons for ShoreLine water in Unity URP: boat wakes with a real Kelvin V, splashes and ripples (Interaction), rigidbodies that float, tilt and drift in wakes (Floating Objects), and rain and storms that change the water at runtime (Weather). Mobile-cheap and hard-capped.

  • Version 1.0.0
  • Unity 6000.0+
  • Platforms Android, iOS, Desktop
  • Updated Nov 29, 2026
ShoreLine Pro

Overview

ShoreLine Pro is the add-ons for ShoreLine water, in one package. It needs the free ShoreLine core and contains:

  • Interaction: the water reacts to what touches it. Boats leave a foam trail, the Kelvin V and a bow wave. Thrown stones and falling crates splash. Floating barrels make soft rings while they bob.
  • Weather: the water follows the weather while the game runs. Rain rings, a storm that builds bigger and faster waves, rougher foam and darker water, and wind that turns the waves and drifts floating things. Three values drive it, from your own weather system or any other.
  • Floating Objects: rigidbodies float. Crates, barrels, buoys and boat hulls bob, tilt and roll with the waves, settle without jitter, and with Interaction get rocked and pushed aside by wakes.

Each add-on is its own folder and assembly: use them all, or delete the ones you don't need. None of them changes a core file. Interaction's effects are drawn into the water surface itself, so they light, refract and fog like the rest of the water. Each effect and each floating body is one component, or one line of code, and costs are capped.

Requirements

ItemVersionNotes
ShoreLine1.1+The free core, from the Asset Store. The add-ons plug into it without changing any core file.
Unity6000.0+Like the core
Universal Render Pipeline17.0+A Universal Renderer with the ShoreLine Feature (the core's one setup step). Render Graph.
Physicsbuilt-in 3DFloating Objects uses Rigidbody and steps in FixedUpdate: keep Simulation Mode on Fixed Update (Project Settings › Physics), Unity's default.
com.unity.inputsystemanyOptional Only the demos read input; they work with the Input System or the legacy Input Manager
Without the core

If ShoreLine is missing or older than 1.1, the add-ons' runtime doesn't compile, so nothing breaks, and the Console says so once per Editor session with a link to the core. Import or update the core and they switch on by themselves.

Quick start

  1. Import ShoreLine first Set up its water as in the core's quick start, with the ShoreLine Feature on your renderer.
  2. Import ShoreLine Pro It lands in Assets/HardArtcore/ShoreLine.Pro, one folder per add-on. Delete an add-on's folder if you don't need it.
  3. Try the demos Open ShoreLine.Pro/Interaction/Demo/ShoreLine_Interaction_Demo.unity , ShoreLine.Pro/FloatingObjects/Demo/ShoreLine_FloatingObjects_Demo.unity or ShoreLine.Pro/Weather/Demo/ShoreLine_Weather_Demo.unity and press Play.
  4. Float something On an object with a collider: Add Component › HardArtcore › ShoreLine › Floating Objects › Floating Object. It adds a Rigidbody if there is none.
  5. Add a wake On your boat: Add Component › HardArtcore › ShoreLine › Interaction › Wake Source, and set Width to the hull's beam in meters.
  6. Add splashes On a Rigidbody: Add Component › HardArtcore › ShoreLine › Interaction › Splash On Impact.
Tip

Wakes also draw in edit mode: drag an object with a Wake Source across the water in the Scene view to preview its trail. Select a Floating Object to see its buoyancy points as grey spheres.

The demo scenes

ShoreLine.Pro/Interaction/Demo/ShoreLine_Interaction_Demo.unity: a toy motorboat sails a loop, easing between 1.5 and 9 m/s, with the camera following it. Four barrels bob with idle rings. Tap or click the water to throw a stone at that point. Stones splash through SplashOnImpact, and up to 10 exist at once.

ShoreLine.Pro/FloatingObjects/Demo/ShoreLine_FloatingObjects_Demo.unity: six crates, four buoys and six barrels float on full-height waves while the toy boat circles them and shoves them aside with its hull. Tap or click the water to drop a crate there, up to 12 at once. This demo uses Floating Objects only: it runs with just the core.

ShoreLine.Pro/Weather/Demo/ShoreLine_Weather_Demo.unity: the ocean with a storm material and four floating crates. Drag the sliders for Wind, Wind Direction and Rain: the waves build, the water darkens, rain rings spread, rain falls slanted by the wind, and the crates drift downwind (and come back in upwind), all easing smoothly. The falling rain is a demo-only example of the sky side, which belongs to your weather system: it asks WaterWeather.RainDrops where the next rings start, so every drop lands on its ring. The crates use Floating Objects.

The demos' scripts (DemoBoatPath, DemoBob, DemoFollowCamera, DemoStoneThrower, DemoCrateDropper, DemoWeatherPanel, DemoDriftWrap, DemoRainFall) are demo-only: delete a Demo folder when you don't need it. The toy boat model comes from the core's Props folder.

Interaction components

Wake Source

For anything that moves through water: boats, swimmers, ducks, sea monsters. It remembers a short path behind the object and paints, in order: a turbulent foam trail that breaks into streaks and fades, the Kelvin V of angled waves spreading at about 19.5° from the track, transverse waves across the trail with a wavelength set by speed, and a bow wave with a dip at the stern. Everything grows with speed. It records only while its pivot is in contact with the water: lift the object out (a jump, a crane) and the trail breaks instead of bridging the gap.

Width
Hull beam in meters. Sets the scale of the whole wake: trail width, V and bow wave. Put the pivot at the waterline, in the middle of the hull.
Foam
Amount of foam in the trail and on the bow, 0–1.
Wave Strength
Height of the V, transverse and bow waves, 0–1.
Trail Lifetime
Seconds until the trail has faded out. The waves outlive the foam: the foam is gone at 60% of this.
Idle Rings
Soft rings while the object is still or bobbing. See Idle rings.

At runtime, InContact tells whether the pivot touches the water and Speed gives the smoothed horizontal speed in m/s. WakeSource.Active lists every enabled Wake Source. Teleporting the object (a respawn) starts a new trail instead of drawing a streak across the water.

Idle rings

With Idle Rings on, a Wake Source that is in the water and moving slower than 0.3 m/s sends out a low ring with a hint of foam every 1.5 s, faster the harder it bobs. So the water around a moored boat or a floating barrel never looks frozen. Give barrels and buoys a Wake Source with a small width and Idle Rings on; while they don't travel they draw no trail, so a harbour full of them is bounded by the shared ring pool, not by their number.

Buoyancy

Interaction reacts to objects that something else moves; it doesn't make them float. Add a Floating Object to float them on the waves and the wakes. The Interaction demo's barrels use the demo-only DemoBob instead, so that demo runs without Floating Objects.

Splash On Impact

On a Rigidbody: it splashes when the object's bottom crosses the water surface. Going in makes a full splash, coming out a smaller one. The size follows the object's footprint and vertical speed. It compares against the moving waves, so a swell rising over a still rock splashes too, while an object resting at the waterline doesn't splash on every tiny jitter: the bottom and the water must close in at 0.5 m/s or more. The water needs no colliders. Each splash also throws a crown of droplets into the air that fall back onto the water.

Size Scale
Multiplies the splash size.
Spray
On by default: droplets fly up with each splash. Off: the splash is on the water only (foam and rings).

The footprint comes from the object's own solid colliders (enabled, not triggers, not on another Rigidbody), or from its renderers when it has none. A splash every 0.25 s at most per object.

Ripple Source

Looping rings around the object, centred on its position: fountains, fishing floats, markers.

Radius
Ripple radius in meters.
Strength
Ring height in meters, up to 0.5. The rings' foam fades with it too: 0 draws nothing visible.
Frequency
Rings per second.

Floating Objects

Floating Object

On any Rigidbody: crates, barrels, buoys, a boat hull you steer with your own controller. It fills the body's colliders with a grid of buoyancy points, and every physics step each point pushes up by how deep it is under the waves, where it is. So the body floats at the height its density gives, tilts and rolls with the swell, and settles instead of bouncing. Water drag slows it relative to the water, scaled by how much of it is under. Good defaults need no tuning.

Density
Relative to water, 0.05–2. 0.5 floats half under; above 1 sinks.
Water Drag
How fast the water slows the body's movement relative to the water (1/s), scaled by how much of it is under.
Turning Drag
How fast the water slows the body's spin (1/s), scaled the same way.
Wave Push
How strongly slopes and water flow push the body sideways, 0–1. 0 = it only bobs. Never changes how high it floats. See Wake push.
Detail
Buoyancy points: Low, Medium, High, or Auto to follow FloatingObjects.Detail. See Detail levels.
Ground Mask
Ground layers for Shallow Water Damping. See Shallow water. Nothing = no damping.
Custom Points
Optional child transforms used as buoyancy points instead of the generated grid, for an unusual hull. The body's volume is shared equally between them.

The points are sized from the body's solid Box, Sphere, Capsule and Mesh colliders (enabled, not triggers). A non-convex Mesh Collider counts as its bounds box; a body with no solid collider doesn't float, and the inspector says why. Kinematic bodies are skipped: they move how you move them.

At runtime, Water is the water found under the centre of mass at the last step (null when none), SubmergedFraction how much of the body was under (0–1), and Body its Rigidbody. Pooling (disable, move, enable) needs nothing else.

Detail levels

Detail changes the number of points, not the model, so a game tuned on PC floats the same on a phone. Points are only kept inside the colliders, so a slim body gets fewer than the grid.

DetailGrid (x × y × z)Points, at most
Low2 × 2 × 28
Medium3 × 2 × 318
High4 × 3 × 448

Bodies set to Auto (the default) follow FloatingObjects.Detail: Low on mobile, High elsewhere, until you set it. Change it at runtime from a quality menu, and Auto bodies rebuild their points on their next step.

Wake push

Floating bodies feel more than the waves. With Interaction installed, wakes, splashes and ripples raise and tilt the water under them, and the bodies ride that too: a passing boat rocks barrels, its bow and hull shove them aside up close, and its wake carries them outward, up to 8 m from its trail. Wave Push scales the sideways part (slopes and drift) from 0 to 1; how high a body floats never changes.

Floating Objects never references Interaction: the two meet through the core's public Surface Effects contract, so each works alone. Without Interaction, bodies ride the waves only.

Shallow water

The core's Shallow Water Damping calms the waves near a beach. To make floating bodies calm down with the visible water, set Ground Mask to your ground layers: each body casts one ray down per physics step to find the water depth under it. Leave it at Nothing on open water.

Weather

Water Weather

One per scene: Add Component › HardArtcore › ShoreLine › Weather › Water Weather. Adding it lists every water surface in the scene. Give each one a Storm material: a normal ShoreLine material with the storm look, made in the usual water inspector (duplicate your water material and make the waves bigger, the colors darker, the foam stronger).

Wind
0 = each surface's own material (calm), 1 = its storm material. Waves, wave and scroll speeds, colors, foam, smoothness and normal strength blend between the two. The storm draws no more waves than the calm material's quality tier allows (Low 2, Medium 3, High 4).
Wind Direction
Where the wind blows to, in compass degrees: 0 = +Z, 90 = +X. Floating things drift this way, and with Align Waves To Wind the first wave turns to run with it.
Rain
Rain rings on the water near the camera: 0 = none, 1 = as many as fit.
Transition
Seconds to ease across the full 0 to 1 range (and 180 degrees of direction). New values never jump: set them every frame or all at once.
Surfaces
The water this weather changes, each with its storm material. An entry with no storm material gets rain, drift and wave direction only. Changed the list while playing (water streamed in or spawned)? Call RefreshSurfaces().
Rain Ring Radius / Rain Strength
Ring size in meters, and how strongly the rings tilt the surface.
Wind Drift / Max Wind Speed
Surface drift as a share of the wind speed, and the wind speed at Wind = 1 (m/s). The default drifts 0.6 m/s at full storm.
Tip

The storm blend runs in play mode, on a copy of each surface's material, so your material assets are never changed. In edit mode the sliders preview rain and drift only. Keep the same features (toggles) on in the calm and storm materials: Water Weather keeps the calm material's and logs which differ. Toggles a quality tier sets (refraction, caustics, surface foam, shadows, reflections) always follow the calm material's tier, without a warning. Rain and wind drift use the core's effects buffer, so it is on (0.7 to 0.9 ms on a 2016 phone) only while it rains or the wind is above 0; a calm, dry scene pays nothing for it. To turn the weather down, set Wind and Rain to 0 rather than disabling the component: disabling puts the original materials back at once, so the waves restart from their own phase. A second Water Weather that takes over carries on from the current values.

Connecting a weather system

Water Weather reads three values, so any weather system can drive it: yours, or another asset's. Set them from its update. While Weather is installed, the project has the scripting define HAW_SHORELINE_WEATHER_1_0. Guard a connector with it and HAW_SHORELINE_1_1 (in #if or an assembly's Define Constraints), so it compiles only when Weather and the core are both there, even in the moment one of them is being removed.

MyWeatherToWater.cs
#if HAW_SHORELINE_WEATHER_1_0 && HAW_SHORELINE_1_1 // both: Weather and the core it needs
using HardArtcore.ShoreLine.Weather;
using UnityEngine;

public class MyWeatherToWater : MonoBehaviour
{
    [Range(0, 1)] public float storm;      // from your weather system
    public float windDegrees;
    [Range(0, 1)] public float rain;

    void Update()
    {
        var water = WaterWeather.Active;
        if (water == null) return;
        water.Wind = storm;                 // eased by Water Weather: no jumps
        water.WindDirection = windDegrees;
        water.Rain = rain;
    }
}
#endif

To keep sky-side effects (falling rain, clouds, fog) in step with the water, read EasedWind, EasedWindDirection and EasedRain: what the water shows now, easing toward the values you set.

To land falling drops, splashes or sounds exactly on the rings, call RainDrops(area, from, to, results): it lists every drop that starts a ring inside area (world XZ) between two moments on WaterWeather.RainClock, with its position, its time and its strength. Ask ahead by your drops' fall time and launch each one so it arrives at its ring's moment. The demo's falling rain does this.

Scripting

Interaction is in the HardArtcore.ShoreLine.Interaction namespace, Floating Objects in HardArtcore.ShoreLine.FloatingObjects, Weather in HardArtcore.ShoreLine.Weather (see Connecting a weather system).

CargoDrop.cs
using HardArtcore.ShoreLine.FloatingObjects;
using HardArtcore.ShoreLine.Interaction;
using UnityEngine;

public class CargoDrop : MonoBehaviour
{
    public GameObject cratePrefab; // a mesh with a Box Collider

    public void Drop(Vector3 position)
    {
        var crate = Instantiate(cratePrefab, position, Random.rotation);
        crate.AddComponent<FloatingObject>().density = 0.4f; // adds a Rigidbody too
        crate.AddComponent<SplashOnImpact>();                // splashes when it lands
    }
}
Cannonball.cs
using HardArtcore.ShoreLine.Interaction;
using UnityEngine;

public class Cannonball : MonoBehaviour
{
    public float splashSize = 1.5f;

    // Your own hit test: a raycast, a trigger, a timer...
    public void HitWater(Vector3 point)
    {
        // A foam burst plus rings spreading on the water here, and droplets thrown up from the point's height.
        WaterSplashes.Splash(point, splashSize);
    }
}
WaterSplashes.Splash(Vector3 position, float size, Rigidbody owner = null, bool spray = true)
A splash at position. size is roughly the width in meters of what hit the water: it scales the ring radius (up to 20 m), height and duration (1–4 s), and the spray. Sizes of 0 or less are ignored. In Play mode the spray's droplets start at position's Y, so pass the water height there; spray: false skips them. owner is the body that made the splash: a Floating Object isn't pushed by its own splash.
WakeSource.InContact, Speed, Active
Read-only state, see Wake Source.
InteractionLimits
The fixed caps as constants: MaxTrailPoints (64 per wake), MaxSplashes (64 live splashes and rings, shared), MaxDrawingWakes (16 per camera), MaxSprayParticles (512 droplets, shared), MaxSprayPerSplash (64) and MaxHeight (0.5 m per source, up and down).
FloatingObjects.Detail
The detail for bodies set to Auto: Low, Medium or High. Setting it to Auto throws an ArgumentException.
FloatingObject.RebuildPoints()
Re-reads the colliders and custom points. Call it after changing a body's colliders, or after teleporting a body without disabling it.
FloatingObject.Water, SubmergedFraction, Body
Read-only state from the last physics step, see Floating Object.

How it works

Interaction

Interaction is built only on the core's public Surface Effects contract: each source draws a top-down shape into the water's effects buffer, a square around where the camera looks (64 m by default, set on the ShoreLine Feature). The water adds the height in its vertex shader and the tilt and foam per pixel, so effects only show inside that square and fade out at its edge.

  • Height shows at the water mesh's vertex spacing, so small waves read mostly through their light and foam. A finer water grid shows more of the wake's shape.
  • Detail follows the buffer resolution (512 texels over 64 m by default, 12.5 cm each). Waves too short for it are drawn longer rather than aliasing into blocks, so a small wake seen from far away stays smooth.
  • Overlapping effects simply add up: two wakes crossing make taller crests. Each source stays within ±0.5 m, the water's culling room.
  • Shaders live in Shaders/Resources/, so player builds include them without any setup.

Weather

Waves, normals, foam, shore bands and caustics all move by speed × time. Water Weather changes them through the core's WaterTuning, which re-bases each one so it carries on from where it is, continuous at the camera. Turning a wave or changing its wavelength slides water far from the camera a little, which is why the values ease over Transition. Rain rings are drawn into the core's Surface Effects buffer in one pass over it: the world is split into cells, and each cell drops one ring per 0.8 s cycle with a chance of Rain. Wind drift is added to the surface flow that SampleSurface returns, which Floating Objects already turns into drag.

Floating Objects

A hidden runner steps every Floating Object once per FixedUpdate. For each body it asks the core's WaterSurface for the water under its centre of mass, samples the surface (waves plus any add-on effects) at all its points in one call, and applies at each point: lift by how much of the point's slab is under, a damping force while it crosses the surface (so it settles instead of bouncing), and the sideways slope push. Then one drag force and one turning drag for the whole body, relative to the water's flow. It samples the same waves the shader draws, so bodies sit on the visible surface.

Performance and limits

Interaction, measured on a OnePlus 3T (2016, Adreno 530, 1920×1080), warm and sustained, on the core's Low tier with a 512 buffer:

WhatCost per frame
Each extra wake, with splashes (10 boats + 64 splashes, divided by 10)0–0.06 ms (OpenGL ES 3), 0.05–0.18 ms (Vulkan)
The core's effects buffer, paid once while any effect is active0.7–0.9 ms (OpenGL ES 3)
One boat plus 10 splashes, the demo's loadNo more missed frames than the buffer alone

When nothing is happening (no trail, no live splash, no ripple), the effects buffer switches off and costs nothing.

CapValueWhen it's reached
Trail points per wake64Points are spaced by speed, so the trail still spans its lifetime.
Live splashes and idle rings64, shared by the sceneThe oldest is replaced.
Spray droplets512 live, shared by the scene; 64 per splashNew droplets are skipped until older ones land.
Wakes drawn per camera16The 16 nearest the buffer centre draw. The others skip drawing but keep recording, so they come back intact.

Recording and drawing allocate no memory per frame. Draw calls: one trail plus one bow quad per drawing wake, one for all splashes and rings together, one for all spray droplets (a built-in Particle System), one per visible ripple.

Floating Objects costs per body per physics step: one batched surface sample over its points (8 at most on Low, the mobile default), one force per point under water, and one downward ray if Ground Mask is set. Bodies share one set of buffers, so stepping allocates nothing. Fewer points (Low) or fewer bodies are the levers on a busy scene.

Architecture

AssemblyContents
HardArtcore.ShoreLine.InteractionWakeSource, SplashOnImpact, RippleSource, WaterSplashes, InteractionLimits. Compiles only when the core 1.1+ is present (defineConstraints: HAW_SHORELINE_1_1).
HardArtcore.ShoreLine.Interaction.SetupEditor only: the one-time Console notice when the core is missing or too old
HardArtcore.ShoreLine.Interaction.DemoThe Interaction demo's four scripts
HardArtcore.ShoreLine.FloatingObjectsFloatingObject, FloatingObjects, FloatDetail. Compiles only when the core 1.1+ is present.
HardArtcore.ShoreLine.FloatingObjects.EditorThe Floating Object inspector's warnings
HardArtcore.ShoreLine.FloatingObjects.SetupEditor only: the missing-core notice
HardArtcore.ShoreLine.FloatingObjects.DemoThe Floating Objects demo's two scripts
HardArtcore.ShoreLine.WeatherWaterWeather, WeatherSurface, WeatherInfo. Compiles only when the core 1.1+ is present.
HardArtcore.ShoreLine.Weather.EditorKeeps the HAW_SHORELINE_WEATHER defines for connectors
HardArtcore.ShoreLine.Weather.SetupEditor only: the missing-core notice
HardArtcore.ShoreLine.Weather.DemoThe Weather demo's slider panel
Assets/HardArtcore/ShoreLine.Pro/
├── Documentation.html            this documentation
├── Interaction/
│   ├── Runtime/                  WakeSource, SplashOnImpact, RippleSource, WaterSplashes, InteractionLimits
│   ├── Setup/                    missing-core notice (Editor)
│   ├── Shaders/Resources/        Wake, Splash, Spray and Ripple shaders
│   ├── Textures/Resources/       the foam breakup noise
│   └── Demo/                     demo scene, its materials and scripts (deletable)
├── FloatingObjects/
│   ├── Runtime/                  FloatingObject, FloatingObjects, FloatDetail
│   ├── Editor/                   Floating Object inspector
│   ├── Setup/                    missing-core notice (Editor)
│   └── Demo/                     demo scene, its materials and scripts (deletable)
└── Weather/
    ├── Runtime/                  WaterWeather, WeatherSurface, WeatherInfo
    ├── Editor/                   the HAW_SHORELINE_WEATHER defines
    ├── Setup/                    missing-core notice (Editor)
    ├── Shaders/Resources/        the Rain shader
    └── Demo/                     demo scene, its materials and slider panel (deletable)

Deleting any add-on folder removes that add-on cleanly; none changes a core file. The Weather demo's crates need Floating Objects. The Interaction and Floating Objects demos sail the toy boat from the core's Props folder.

Troubleshooting

Nothing shows on the water
Check the core first: the ShoreLine Feature must be on the renderer (select a water material; the inspector offers a fix). Then check the Console for the missing-core notice.
The wake doesn't appear
The pivot must be within the contact band: from one Width below the water surface to half a Width above it. Put the pivot at the waterline.
Effects stop a distance from the camera
They only draw inside the effects buffer, 64 m around where the camera looks by default. Raise Buffer World Size on the ShoreLine Feature (and Buffer Resolution with it, to keep the detail).
The wake looks soft or blocky
Height shows at the water's vertex spacing: use a finer water mesh near the camera. Fine detail follows the buffer's texels per meter.
Splashes don't fire
SplashOnImpact needs a Rigidbody, and something must move the object through the surface at 0.5 m/s or more. Kinematic objects moved by setting the position report no velocity, so their exit splash is skipped.
Some wakes flicker off in a crowded scene
More than 16 wakes have a trail inside the buffer; the farthest from its centre skip drawing that frame.
Old splashes vanish early
More than 64 splashes and rings are live, so the oldest are replaced. Fewer objects with Idle Rings helps.
A body doesn't float
Read the Floating Object inspector: "No collider to size the float points from" needs a solid collider; "No water found below" (in play mode) means no ShoreLine water is under its centre of mass. Kinematic bodies are skipped on purpose.
A body floats like a box
A non-convex Mesh Collider counts as its bounds box. Tick Convex, use primitive colliders, or place Custom Points.
Floating feels off at a low frame rate
The Console warns if Physics Simulation Mode isn't Fixed Update: Floating Objects only steps there.
Bodies don't react to wakes
Wake push needs Interaction, and only reaches as far as its effects draw (the effects buffer around the camera). Check Wave Push isn't 0.

Third-party notices

None: the package contains no third-party code, fonts, textures or models.

Release notes

1.0.0

  • First release of ShoreLine Pro, needs the free ShoreLine core 1.1+.
  • Interaction: Wake Source (foam trail, Kelvin V, transverse and bow waves, idle rings), Splash On Impact with droplet spray, WaterSplashes.Splash, Ripple Source, fixed caps and a demo scene.
  • Floating Objects: Floating Object (collider-sized buoyancy points, water drag, wake push, shallow-water damping, custom points), Low/Medium/High detail and a demo scene.
  • Weather: Water Weather (calm-to-storm blend, rain rings, wind direction and drift, all changing smoothly at runtime), the HAW_SHORELINE_WEATHER defines for connectors, and a demo scene.

Need help?

Questions, bug reports or feature requests: I usually reply within a day.

support@hardartcore.com

Last updated November 29, 2026.