Skip to content

padreperoni/sprites-water-distortion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Sprites/Water Distortion - Shader for Unity

Warning: this shader is a bit outdated, but it still works

This is the shader we're using in Beyond the Sky for rendering water surface. It's quite easy to use: choose a base sprite (it works with the sprite renderer component), the right sorting layer and order, select a texture for distortion effect, scale it, set X and Y refraction values and set a scroll speed. If you don’t set the scroll speed the distortion will stay still, which is also a good way to simulate glass.

You can do whatever you want with it: you can use it in your projects, modify it, sell it, print the code and use it for making paper planes, you can give me credit or not.

If you take a look at this page on the dev blog you can see it in action.

About

A shader for 2D water distortion in Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published