Skip to content

Brajanowski/unity-2d-water

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity 2D Water

Usage:

It requires setup consisting of 2 cameras.

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

Screenshot

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

  1. Attach script called ScreenSpaceWaterReflections to second camera.

Screenshot

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

Screenshot

  1. Now you can put a Water prefab on scene.
  2. Done

Screenshot

Screenshot have Vignetting post process on it.

License:

Fell free to use in personal and commercial projects.

About

Simple water in Unity for 2D platform games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published