Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Brajanowski/unity-2d-water
- Owner: Brajanowski
- Created: 2017-08-10T08:57:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T18:28:28.000Z (almost 7 years ago)
- Last Synced: 2024-07-14T14:32:00.533Z (4 months ago)
- Language: C#
- Size: 272 KB
- Stars: 70
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - unity-2d-water - Simple water in Unity for 2D platform games (Sprite)
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.