Water Shader Unity
Basic ray marching shader.
Water shader unity. 11 points 2 years ago github dropbox for code. Aybe 02 03 2020 at 18 16 looks nice thanks. Scrolling texture with fill amount. 2 comments add comment.
Also here s a video preview of the last version for those who want to. P s send me pictures of the asset in your project. Have fun with it. It s a lightweight water shader that looks great shader now has a transparent version with refraction and depth fog or murkiness.
This file contains about the simplest shader possible. Russ painter 03 03 2020 at 09 52 excellent. Checkout these top picks for all experience levels. Reflective refractive water requires similar steps to set up from scratch.
Create a mesh for the water. Use the fx water simple shader in the material or tweak one of the provided water materials daylight simple water or nighttime simple water. Open the main scene located at the project root and open the toonwater shader located in the shaders directory in your preferred code editor. One that outputs the color white.
Zip file includes two shaders forward and deferred instructions on setting them up a free normal map and some preview images that look pretty thanks for the support in making this. Find this more vfx shaders on the unity asset store. I m also using unity s standard asset water bump normal map. You can easily substitute this for your own it doesn t have vertex displacement the water is just reflections and moving normal maps.
A newer version of this tutorial additional features. Add depth to your next project with nice water shader from vaxkun. Make the shader highly adjustable. Supported by over 100 000 forum members.
Https youtu be kgxeo2srdd4 in this video we dive a bit into unity s new node based shader e. This should be a flat mesh oriented horizontally. Did you enjoy this article. Over 11 000 5 star assets.
So this tutorial shouldn t really be called. When it comes to the techniques used here there s nothing really fancy as you ll see. Drawing circles pattern. A procedural water shader multi platforrm support unity glsl hlsl for a variety of water types.
Attach the watersimple script from standard assets water sources to the gameobject. Uv coordinates are not required. Download the starter project provided above and open it in the unity editor. Make the shader work on a plane out of the box with no other setup.
Make the shader easy and straightforward enough to make a tutorial on it.