3D Stylized Water with Refraction and Foam Shader Graph - Unity Tutorial

preview_player
Показать описание
In this video we will show you how to create 3D Stylized Water with Foam Shader Graph in Unity engine.

00:00 Intro
01:04 Setting-up the project and the scene
02:35 Creating depth fade sub-graph
04:22 Creating the unlit graph for the stylized water shader graph
05:25 Creating the water depth color nodes
06:40 Creating texture movement and scale sub-graph
07:37 Creating water refraction nodes.
10:45 Creating the foam nodes.
13:12 Outro

Song: Extenz - Gravity (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.

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

Great Video!!
For any of you who had a reflextion problem, I am using unity 2021.3.27f1
create a new camera(or alternate in your main camera) under Rendering->Opaque Texture turn it ON, and also Depth Texture
Then it show work in ur game view

akoryou
Автор

The best water shader video for urp I've ever seen, love it. Keep up the good work

alexandrugd
Автор

can you make a stylized grass tutorial ?

sparky
Автор

if you are using HDRP, you should put HD Scene color instead of scene color in the refraction part and turn on exposure, or you'll get a very bright material <3

killoki
Автор

No matter what i do, the foam spread across all the water or none of it (o can't achieve the foam overlaping look in objects). Any idea why?

shabadava
Автор

Thank you for your tutorial. Not only is the tutorial easy to follow and cut to relevant steps but you managed to give a broad sense of how to organize and build shader :)

gaelschlupp
Автор

Hello, when I'm connecting Lerp, Scene color, and split to another lerp, my lerp material doesn't become blue as yours and stays black, after that there is no transparency in water, did anybody stumble upon that and know how to fix it?

DeadpoolMr
Автор

One issue solution: If you follow everything rigth to 5:15 and the plane is not foggy despite you selected the surface type to be 'transparent' in the shader graph, you need to set again the surface type to transparent, but in the inspector, selecting the material

adriangonzalezjimenez
Автор

This is 100% what I needed to learn for my project. Thank you!

JeanAlvarez-hh
Автор

Thanks for the tutorial! It's not often a Unity tutorial on YouTube works perfectly without any problems :)

sajugs
Автор

Very good tutorial !
To have a better result, you can connect the new screen position (calculated for the refraction) to the sceneDepth node so that the depth map (and all the effects computed from it) will be deformed the same way as the image :)

vivianmenard
Автор

If your depth texture and/or foams are not working in play mode while they are working in the editor scene view, make sure to enable Opaque and Depth Texture in the main camera settings. If still not working, check the URP Renderer Data settings -> Rendering -> Depth Priming mode should be "Auto' or 'Forced'. It was 'Disabled' by default for me, so the Depth and Foam stuff were not working in Play mode while they were working in the Editor.

kadagaden
Автор

I actually requested a video on this in the comments of a previous video, so thank you very much for doing this! Really appreciate your tutorials they are great and I am learning a lot from them. :-)

monkeysaur
Автор

For the life of me I cannot figure out how you don't have more subscribers. These are some of the finest tutorials on the internet.

Krechevskoy
Автор

Thanks ! that's really what i had been searching for

katchup
Автор

still relevant after 3 years. thank you!

ilhameffendi
Автор

Any idea on how to refract the objects that are only in the water and not outside of it? I'm getting refractions on my hand held objects. Thanks!

ohnedich
Автор

Hi, I experienced the same problem with @ANJ_gaming, which is that the refraction not working after finishing the refraction block. The water with both the colors' alpha decreased still has a grey base color, therefore not really transparent. And then I tried connecting the splitted alpha channel to the alpha of the unlit output and it still does not work. Any help on this please?

CMS-thoe
Автор

In HDRP the foam effect doesn't work. Not sure what nodes to use to get the edge effects like in this one.

tommywilkinson
Автор

There is a problem in this shader. Look at the edge of the purple rocks in the water. They blended with the water behind them. It should not happen.

dokhtaroneh