• This repository has been archived on 23/Jul/2019
  • Stars
    star
    412
  • Rank 102,818 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple shader + example of a water surface with reflection in 2D

2D Water surface in Unity3D

screenshot

Description

A 2D water surface that will deform what is "underwater".

More details in my blog post.

Made with Unity 5.4.3f1 but should work on all Unity 5 versions.

Not enough tested on mobile and not tested at all on consoles

Usage

  1. Clone this repository or download the latest release package available.

  2. Add the "Water2D Surface" prefab in your scene. This is now your water.

  3. Tweak the sprite order/layer of the surface

  4. Add a WaterReflectableScript to any object you want to be reflected in the water

Enjoy! You can also simply place sprites under water using sprite layers/order.

Credits

Demo assets made by the Superpower team.