Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valryon/water2d-unity
A simple shader + example of a water surface with reflection in 2D
https://github.com/valryon/water2d-unity
shader unity unity3d water2d
Last synced: 2 months ago
JSON representation
A simple shader + example of a water surface with reflection in 2D
- Host: GitHub
- URL: https://github.com/valryon/water2d-unity
- Owner: valryon
- License: mit
- Archived: true
- Created: 2016-10-14T08:27:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T22:13:11.000Z (almost 8 years ago)
- Last Synced: 2024-08-01T22:52:49.374Z (5 months ago)
- Topics: shader, unity, unity3d, water2d
- Language: C#
- Size: 3.26 MB
- Stars: 412
- Watchers: 30
- Forks: 61
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- unity-awesome - 2D Water - A simple shader + example of a water surface with reflection in 2D (Shaders)
- awesome-unity-open-source-on-github - water2d-unity - A simple shader example of a water surface with reflection in 2D (Water)
README
# 2D Water surface in Unity3D
![screenshot](screenshot.gif)
## Description
A 2D water surface that will deform what is "underwater".
More details in [my blog post](http://dmayance.com/water-surface-2d-unity/).
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](https://github.com/valryon/water2d-unity/releases).
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](https://github.com/sparklinlabs/superpowers-asset-packs).