Jump to heading Shallow Red
In this tutorial I will explain step-by-step how to create a beautiful stylized water shader in Unity using Shader Graph. The goal is not to generate a physically accurate result, but rather to achieve a real-time, controllable and good-looking stylized water shader.
// TODO: Add video of end result.
Jump to heading 1. Requirements and initial set up
This tutorial has been made with Unity 2022.2.6f1 and Universal RP 14.0.6.
Jump to heading Required settings
Before starting, make sure to enable the depth/opaque textures in the URP pipeline asset settings in your project.
// TODO: Add image of opaque and depth texture toggled on
Jump to heading Initial setup
First, we create a new Unlit Shader Graph shader. The shader material should be set the Unlit and the surface type to Opaque.
Jump to heading Required settings
Before starting, make sure to enable the depth/opaque textures in the URP pipeline asset settings in your project.
// TODO: Add image of opaque and depth texture toggled on
Jump to heading Initial setup
First, we create a new Unlit Shader Graph shader. The shader material should be set the Unlit and the surface type to Opaque.