Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Brajanowski/unity-2d-water

Simple water in Unity for 2D platform games
https://github.com/Brajanowski/unity-2d-water

Last synced: 3 months ago
JSON representation

Simple water in Unity for 2D platform games

Awesome Lists containing this project

README

        

# Unity 2D Water

# Usage:
It requires setup consisting of 2 cameras.

1. Create a second camera and parent it to the main camera.

![Screenshot](ss/0.png)

**IMPORTANT**: Second camera must have same settings for orthographic projection as the main camera.

2. Attach script called ScreenSpaceWaterReflections to second camera.

![Screenshot](ss/1.png)

3. Set culling on second camera to layers that will be reflected on the water.

![Screenshot](ss/2.png)

4. Now you can put a Water prefab on scene.
5. Done

![Screenshot](ss/3.png)

Screenshot have Vignetting post process on it.

# License:
Fell free to use in personal and commercial projects.