Skip to content

5l4vm0/WaterRippleShader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌊 Unity Water Ripple System

A dynamic ripple effect system for Unity that visualises water surface interaction through both object collisions and mouse input. This system is ideal for simulations, stylised water surfaces, or interactive environments.

RippleShowcase.mp4

YoutubeLink

💧 Ripple Types

1. Object-Triggered Ripple

  • Dynamic ripple trails following moving objects, such as boats trials.

2. Mouse Input Ripple

  • Ring ripples triggered by mouse clicks, ideal for user mouse interaction.

3. Raindrop Ripple

  • Simulates environmental raindrops using randomised UV inputs.

4.Continuous Ripple

  • Used for static floating objects like boats that floating up and down.

📌 Features

1. Two Interaction Types:

  • Object Collision Ripples
  • Mouse Input Ripples

2. Addition Control:

  • Boat Movement control
  • Boat Floating Control

🎮 Interaction Types

1. Object Collision Ripples

Drag and drop ObjectTriggeredRippleWaterPlane prefab.

  • Ripples are triggered when the object enters the defined waterTrigger. The ripple’s centre is derived from a downward raycast that collects textureCoord from the collision with the water plane.
  • Optional buoyancy behaviour moves the object up with ripple peaks.

2. Mouse Input Ripples

  • Drag and drop RaindropSurface prefab.
  • Left click on mouse, a ray is cast from the screen. If it hits the water surface (layer "Water"), it triggers ripples.

About

A real-time, shader-based water ripple system for Unity. Supporting: Object-Triggered Ripple, Mouse Input Ripple, Raindrop Ripple, Continuous Ripple. Two ripple styles: ring-based & cosine drop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors