How to make a Water Shader with FOAM In Unity with URP! (Tutorial)

preview_player
Показать описание
In this video I showed you how to make a water shader that has foams in it. It is one of my most requested video so far.

In this video you will learn how to make a simple or cartoon water shader and a Dynamic FOAM shader that you can apply to any water shader or can work as a base for adding foams in your water.

I have tried to explain everything in the simplest way possible. If you enjoy the content do SUBSCRIBE. It helps motivate to create awesome videos for you guys.

TimeStamps:
0:00 Intro & Basic settings
2:46 Adding Color
7:30 Adding Waves
9:57 Adding Foams

DM me!

Follow me!
Рекомендации по теме
Комментарии
Автор

This is exactly what I needed thank you so much!!!

makachu
Автор

Last time I checked foam based on Z depth only works if the camera actually intersects with something. So for example, if you were to look straight down at the cube instead of from the side, there won't be any visible foam. Is that how depth fade works as well or does the foam show up in all circumstances no matter the angle of the camera?

yeahnope
Автор

Hi thank you for putting together this tutorial .... Everything was very clear and easy to follow, which is not usually the case in a lot of these utube videos, so thank you for that.

I was with you right up until adding the parts of the shader graph for foam, which according to your introduction was the main reason for this tutorial.

It appears that this tutorial for adding foam, although only 6 months old, doesn't work as described for versions of Unity after 2020, due the the key element in your foam part of the shader "depth fade" no longer being available. Have you or anyone else figured out how to modify what's in this shader to get the foam part working?

waynedaley
Автор

Depth fade doesn't exists now, what to do now? I am using 2021.3

Brainyplanet
Автор

IF YOU HAVE PINK COLOR ---> in shader graph editor on the left go to graph settings tab. In active targets add urp(Universal)

malibaturhan
Автор

To get Foam you'll need to do the same as what you did with Shallow water colour. Just reduce the scale and remove time, then attach it to Lerp with the colour channel. And finally connect it to Master Base colour

victor.novorski
Автор

Thanks very much * Multiply(1000). It works awesome as an ocean.

nathan
Автор

You need to make a tutorial on under water shader.

alexpurification
Автор

Anyone can think of a reason why i see everything correct in scene view but on gameview i cant see the foam?

wolfgangkurz
Автор

when I put the mouse in Shader I don't see the same options as you, help

chifuranger
Автор

thanks for the tutorial, was exactly what we're after :)

btw, I think, it's choppy in editor not because your PC is bad, but because in Editor the update method is called at a fixed time rate which is quite small due to performance reasons (same stuff happening when you work with custom editors and calls to OnGUI), I noticed that if you press and hold mouse button in Scene view it will start updating properly, so it reacts to the changes too, otherwise, it's very rare update calls

ЖеняСвятний
Автор

Did anyone find a workaround for the depth fade problem?

BlueHat