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

  Рет қаралды 156,934

Binary Lunar

Binary Lunar

Күн бұрын

Пікірлер
@BinaryLunar
@BinaryLunar 4 жыл бұрын
📝 The Ultimate 2D & 3D Shader Graph Course: tinyurl.com/3b5zac7c 🌎 Let us know what you think about this video, also feel free to chat with us on our Discord server: discord.com/invite/b6bXKSV ❤ Support us on Patreon www.patreon.com/BinaryLunar and gain access to all our tutorial projects. 📦 Check our Assets on Unity Assets Store: assetstore.unity.com/publishers/47136
@maistrogaming7911
@maistrogaming7911 4 жыл бұрын
Thank you btw
@BinaryLunar
@BinaryLunar 4 жыл бұрын
@@maistrogaming7911 our pleasure.
@Ifeelmylegssubtely
@Ifeelmylegssubtely 3 жыл бұрын
when i try connect the water colour section to the lerp how you did o the lerp it shows black even when ive checked through everything so my water is now just white is there a fix.
@akoryou1488
@akoryou1488 7 ай бұрын
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
@ilhameffendi2737
@ilhameffendi2737 11 ай бұрын
still relevant after 3 years. thank you!
@BinaryLunar
@BinaryLunar 11 ай бұрын
You are most welcome
@katchup8417
@katchup8417 4 жыл бұрын
Thanks ! that's really what i had been searching for
@killoki8538
@killoki8538 3 жыл бұрын
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 жыл бұрын
thank you very much!!I'm looking for a solution to this problem
@roi_bidoushka5531
@roi_bidoushka5531 2 жыл бұрын
But i with that i have nothing too, when i change the color opacity, nothing happens ( ps : i dont know where i must turn on depth and opaque texture in HDRP ?)
@dc348
@dc348 Жыл бұрын
@@roi_bidoushka5531 I activated the transparenci of the material in surface options, is the previous section to exposed properties.
@monkeysaur4305
@monkeysaur4305 4 жыл бұрын
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. :-)
@BinaryLunar
@BinaryLunar 4 жыл бұрын
You welcome, we glad it was useful.
@bovineox1111
@bovineox1111 3 ай бұрын
Thanks for this. One trick that can be done, if alpha is expensive, is to render the water as an opaque object after everything else, ensuring the depth-buffer is accurate, this can give you the glow, which can be distorted, around the edge of objects without having the plane. Additionally you could have a mix of alpha planes around objects and opaque across blocks of deep water, provided you are always fading to deep colour before the edge of an alpha plane around objects, this can also reduce alpha and z reads. I may also try rendering a 'in the water' object twice, with the second time adjusting the position to always be on the plane of the water and scaling it slightly from the centre. This is not as nicely automatic as other solutions however. Some of these are not so important for desktop, but for VR and mobile they are lifesavers!
@kadagaden
@kadagaden Жыл бұрын
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.
@obanxMolly1991
@obanxMolly1991 Жыл бұрын
This fixed everything for me,thank you!!
@TheDevinhanson
@TheDevinhanson 6 ай бұрын
This fixed mine, with one additional tweak: your camera has to be in perspective mode. It does not work in orthographic.
@teemoballs
@teemoballs 21 күн бұрын
omg thank you man
@gaelschlupp9963
@gaelschlupp9963 3 жыл бұрын
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 :)
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@adriangonzalezjimenez3681
@adriangonzalezjimenez3681 2 жыл бұрын
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
@lflxko3912
@lflxko3912 Жыл бұрын
How do I find the material transparency option? When I click surface drop down arrow when material is selected in inspector, it has no drop down options showing?
@199jaw
@199jaw Жыл бұрын
@@lflxko3912 After messing around I found that it is actually the WaterDepth paramater that is too high. I had to set mine to like 0.2 for it to work properly
@P134-i3p
@P134-i3p Жыл бұрын
For me, I had to press "Save asset" for the thing to update and apply
@LegendJ0e4
@LegendJ0e4 Жыл бұрын
my water is all black, it was foggy before, now it's all black... I'm at 5:55
@sparky1377
@sparky1377 4 жыл бұрын
can you make a stylized grass tutorial ?
@Krechevskoy
@Krechevskoy 3 жыл бұрын
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.
@vivianmenard
@vivianmenard 9 ай бұрын
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 :)
@shabadava62
@shabadava62 Жыл бұрын
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?
@JeanAlvarez-h5h
@JeanAlvarez-h5h 4 ай бұрын
This is 100% what I needed to learn for my project. Thank you!
@BinaryLunar
@BinaryLunar 4 ай бұрын
@@JeanAlvarez-h5h glad to hear that, you are welcome )
@OHSWZ-jj8qd
@OHSWZ-jj8qd 2 жыл бұрын
Great tutorial, I can't find a tutorial related to some platforms in China but your video helped me
@sajugs8697
@sajugs8697 3 жыл бұрын
Thanks for the tutorial! It's not often a Unity tutorial on KZbin works perfectly without any problems :)
@包子西施
@包子西施 12 сағат бұрын
It's very nice. But i want to know why split Screen Position a channel? why not z channel? At 3:34 of video.
@gotnixmedi8461
@gotnixmedi8461 2 жыл бұрын
This was always explained in a very comprehensible way. Thank you for the time you have invested.
@DeadpoolMr
@DeadpoolMr 4 жыл бұрын
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?
@BinaryLunar
@BinaryLunar 3 жыл бұрын
Make sure that enable depth and opaque textures on the renderer 2:20.
@mencowsky
@mencowsky 3 жыл бұрын
@@BinaryLunar i still have this problem and it seems to dont want to go away. My cube stay grey all the time but i've did everything in the video
@francescagreetham1804
@francescagreetham1804 3 жыл бұрын
@@BinaryLunar Thank you! I missed this part and it went from a blue blob to working instantly. The relief!
@brianmcalpine822
@brianmcalpine822 2 жыл бұрын
@@mencowsky I had to switch the A & B around on the last lerp
@quintonneal2881
@quintonneal2881 2 ай бұрын
@@brianmcalpine822 Love this. I was about to go insane XD
@bovineox1111
@bovineox1111 3 ай бұрын
what might be missing for some people is that your water plane MUST have UVs or you're going to get crazy results. If it doesn't you can map the world XZ co-ords to the UV vector for the movement node and crank the speed, scale and strength way down
@jonytitan3467
@jonytitan3467 4 жыл бұрын
Adoro tu canal bro. Me encanta tu contenido y tus explicaciones sublime 🤩
@GruulGaming-ku7vf
@GruulGaming-ku7vf 4 ай бұрын
once I get to 10:20 and set the colors alpha to 0 the shader just goes sraight to white. Are you able to tell what setting might cause something like this?
@CMS-th9oe
@CMS-th9oe Жыл бұрын
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?
@intingido9751
@intingido9751 Жыл бұрын
If you go on your water GameObject inside the editor hierarchy and you go down to your material, the color's transperancy setting is probably maxed out
@baulator
@baulator 3 жыл бұрын
All seems to be working until 5:10. My "Water" object isn't transparent at all. Does anyone have an Idea why? I did everything until this point like it is shown in the Video (apart from the Assets). Do I have to enable something on the objects that should be visible through the Water?
@BioHazardAlBatros
@BioHazardAlBatros 3 жыл бұрын
Enable DEPTH and OPAQUE textures in rendering camera's properties. It should be visible when u launch test
@baulator
@baulator 3 жыл бұрын
@@BioHazardAlBatros Thanks. The problem was that I forgot to save the shader asset.
@BioHazardAlBatros
@BioHazardAlBatros 3 жыл бұрын
@@baulator lol
@ducky4303
@ducky4303 2 жыл бұрын
such a good vid, perfect use of sub shaders and organised grouping
@BinaryLunar
@BinaryLunar 2 жыл бұрын
Thanks!
@ohnedich9960
@ohnedich9960 Жыл бұрын
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!
@da_drood-digitalart
@da_drood-digitalart 11 ай бұрын
Have you found a solution yet? :O
@alonshini
@alonshini 2 жыл бұрын
Great work man - clear and comprehensive, thank you
@BinaryLunar
@BinaryLunar 2 жыл бұрын
Kind of you!
@Ecan_Au
@Ecan_Au 4 жыл бұрын
Absolutely love it, mint tutorial
@BinaryLunar
@BinaryLunar 4 жыл бұрын
Glad you enjoyed it
@雨幕殇
@雨幕殇 3 жыл бұрын
According to the video 10:26,I changed the ShallowWater alpha and DeepWater alpha but it didn't become transparent,still like blue fog,I don't even know why,could you please help me fix it?thank you!
@mr.ndreson3759
@mr.ndreson3759 3 жыл бұрын
same problem, cant figure it out why
@mr.ndreson3759
@mr.ndreson3759 3 жыл бұрын
Okay, I got it, at the beginning he says go to edit and project settings then to graphics, click on the urp thing and then check those two things in the inspector
@jamesskyhigh946
@jamesskyhigh946 Жыл бұрын
This is working and 100%error-free if u closely follow the tutorial, thank u so much❤
@BinaryLunar
@BinaryLunar Жыл бұрын
You are most welcome
@MattSayer1080
@MattSayer1080 2 жыл бұрын
Excellent tutorial. Thank you so much!
@BinaryLunar
@BinaryLunar 2 жыл бұрын
You welcome!
@infinityvy
@infinityvy 9 ай бұрын
in case anyone is also having issues with the depth not working: for me the issue was that i had orthographic camera enabled. in hindsight makes a lot of sense since it kinda takes the depth away but took me a while to figure that out
@pchris
@pchris 4 жыл бұрын
set playback speed to 1.5 and this tutorial is amazing! It covers so many techniques I was looking for to make my water look much much better!
@huytruong2636
@huytruong2636 2 жыл бұрын
Your tutorial is amazing , thanks much
@BinaryLunar
@BinaryLunar 2 жыл бұрын
you are most welcome!
@tommywilkinson33
@tommywilkinson33 2 жыл бұрын
In HDRP the foam effect doesn't work. Not sure what nodes to use to get the edge effects like in this one.
@ANJ_gaming
@ANJ_gaming Жыл бұрын
Everything worked for me up until 10:04 . After adding the refraction+movement and lerping it into the water color and saving the asset nothing changed, no movement. However I read there is an updated video so I'll try to find that.
@carolinkohn4833
@carolinkohn4833 Жыл бұрын
found it yet? same problem!
@ANJ_gaming
@ANJ_gaming Жыл бұрын
@@carolinkohn4833 unfortunately no, I just abandoned this one and took what I could out of it.
@CMS-th9oe
@CMS-th9oe Жыл бұрын
same problem, any luck getting it working now?
@ANJ_gaming
@ANJ_gaming Жыл бұрын
@@CMS-th9oe Unfortunately not, I just shifted away from this tut for the time being, sorry!
@Piiietsch
@Piiietsch Жыл бұрын
I found the solution, some people said it here in the comments: There is a setting in the universal render pipeline asset that you have to turn on to make the movement work in URP
@schnerror
@schnerror 3 жыл бұрын
Well and with focus explained, tyvm
@galamotshaku
@galamotshaku 3 жыл бұрын
For some reason my foam is only showing in the scene view but not in game mode.
@alphatachi
@alphatachi 2 жыл бұрын
Incredible tutorial!
@BinaryLunar
@BinaryLunar 2 жыл бұрын
Thanks!
@guimosoft4753
@guimosoft4753 2 жыл бұрын
Really Nice!!! Its beautiful
@BinaryLunar
@BinaryLunar 2 жыл бұрын
You are most welcome!
@mattgreen753
@mattgreen753 2 жыл бұрын
Thank you for the awesome tutorial!
@BinaryLunar
@BinaryLunar 2 жыл бұрын
You welcome!
@antoniomagic6
@antoniomagic6 4 жыл бұрын
Fantastic tutorial! 10/10
@onlyace8279
@onlyace8279 Жыл бұрын
my refraction doesnt work, any suggestion?
@poly.morphine
@poly.morphine 9 ай бұрын
Same here, did you find a solution?
@mkaram4893
@mkaram4893 5 ай бұрын
How come nothing is connected to the Alpha channel on the shader node and the water is still transparent? :D
@北科大-謝妤羚
@北科大-謝妤羚 3 жыл бұрын
Can you make this tutorial by the new shader graph version (Unity 2020) ? plz
@BinaryLunar
@BinaryLunar 2 жыл бұрын
kzbin.info/www/bejne/Z6rIp6N5dqaSqLc
@shiv-iwnl8188
@shiv-iwnl8188 3 жыл бұрын
Great tut, but I have a problem with the refraction on surfaces like planes that are single sided, how could I fix it?
@captain_fact
@captain_fact 4 жыл бұрын
Nice vid it actually works🔥🔥
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@ikizlerlebirgun7119
@ikizlerlebirgun7119 3 жыл бұрын
Definitely what i need! Thank you man!
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome ^^
@polyforge3d
@polyforge3d 9 ай бұрын
Hmmm, I followed all the steps, but I get fully transparent water with refraction but no color and the foam also is not showing up...
@bovineox1111
@bovineox1111 3 ай бұрын
Is your zbuffer enabled as a shader source?
@polyforge3d
@polyforge3d 3 ай бұрын
@@bovineox1111 Thanks for the suggestion, I don't remember, but nevermind, I no longer need it :)
@alexp.9410
@alexp.9410 3 жыл бұрын
Thanks for sharing 👌
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@frodox10
@frodox10 3 жыл бұрын
Great video mate, really useful thank you!!
@BinaryLunar
@BinaryLunar 2 жыл бұрын
Your welcome!
@RausanSinha
@RausanSinha 4 жыл бұрын
Amazing tutorial with explanation!
@BinaryLunar
@BinaryLunar 3 жыл бұрын
Thanks!
@connieduartepetti
@connieduartepetti 3 жыл бұрын
this was awesome! thank you, just what I needed! c:
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@drake_eric9799
@drake_eric9799 6 ай бұрын
cant see the water in far only shadow i see , but i see water if I'm near in water what is my wrong?
@dokhtaroneh
@dokhtaroneh 4 жыл бұрын
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.
@WISPRINGS
@WISPRINGS 4 жыл бұрын
What would be your solution?
@SuperDianaka
@SuperDianaka 4 жыл бұрын
@@WISPRINGS I am looking for an answer as well.
@AmgedAlfakih
@AmgedAlfakih 4 жыл бұрын
try to put the value to the minimum
@tariqr9737
@tariqr9737 4 жыл бұрын
kzbin.info/www/bejne/enqoZKSceKyLopo this link would be the answer
@naxo175_
@naxo175_ 3 жыл бұрын
3:47 I have not the Vector1. I'm using Unity 2021.1.12f1. However this looks amazing :)
@BinaryLunar
@BinaryLunar 3 жыл бұрын
Vector 1 changed into float in Unity 2020.
@djcoll123
@djcoll123 3 жыл бұрын
Nice tutorial this works in Amplifer
@BinaryLunar
@BinaryLunar 3 жыл бұрын
yeah same concepts can be applied.
@djcoll123
@djcoll123 3 жыл бұрын
@@BinaryLunar but in unity 2017 shows that water in white .c in 2018 and that one you showed in video works fine
@djcoll123
@djcoll123 3 жыл бұрын
@@BinaryLunar ok i solve that problem by self i had an light that have no shadows enabled didnt know that i needed to prevent that water shows white
@poweredbygeeko
@poweredbygeeko 3 жыл бұрын
awesome tutorial! thanks!!
@spideyman1909
@spideyman1909 4 жыл бұрын
the foam nor the moving water ripples work for me and I followed step by step can someone help?
@Gregasaurus
@Gregasaurus 3 жыл бұрын
nice one! great tutorial.
@BinaryLunar
@BinaryLunar 3 жыл бұрын
Thanks!
@RoseWoodKitty
@RoseWoodKitty 3 жыл бұрын
I loved this tutorial but im having this weird issue where in the game camera the foam still takes up the whole of the object its on, ive tried to no avail on fixing the issue and was wondering if anyone may have had a similar issue?
@Slort_
@Slort_ Жыл бұрын
I also had this problem, I fixed it by taking the Add node after the Step and Split in the foam section and replaced it with multiply.
@Auliszek
@Auliszek 3 жыл бұрын
Thanks for the awesome tutorial! Did any of you guys have this issue: the higher refraction scale you set, the more pixel-ish the water gets? It looks decent in the areas near to the camera, but from a distance it looks like a huge pile of pixels - no idea how to fix that :)
@spicedruid
@spicedruid 3 жыл бұрын
I have the same problem too. I think its because the further away you are from the water the less pixels there are to refract, so i guess turning refraction off at a range where you cant notice it would be a good idea
@marianmarian8882
@marianmarian8882 9 ай бұрын
its because of the noise texture that dont get scaled when in distance, the fix is to use a made water texture and make sure to have mip maps enabled the best looking for water is voronoi textures
@ttttkk2
@ttttkk2 2 жыл бұрын
Hi, i can't find the unlit graph at 4:30
@thelittlemob
@thelittlemob 3 жыл бұрын
Thanks for this tutorial
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@growguru2020
@growguru2020 9 ай бұрын
wow really nice! can you show pls how to make this water shader works with interactive objects?! like...your player walk into the water...or swimming objects on it
@RausanSinha
@RausanSinha 3 жыл бұрын
How can i add reflection to the surface of water?
@BinaryLunar
@BinaryLunar 3 жыл бұрын
we might do new water shader with reflection during this year.
@ezzadesa
@ezzadesa 4 жыл бұрын
Thank you so much for this tutorial!
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@teotot2116
@teotot2116 Жыл бұрын
hey, i have a trouble that my shader is gray for some reason. What can be the problem
@dairrizzle9715
@dairrizzle9715 4 жыл бұрын
Am having some problems the depthfade node in the stylize water part doesn`t have the distance point to it
@rorschacht8478
@rorschacht8478 4 жыл бұрын
You need to save the DepthsFade shader before it can take an input in the main shader. Click on "save asset" in the top left corner of the shader editor window.
@dairrizzle9715
@dairrizzle9715 4 жыл бұрын
@@rorschacht8478 thanks man got it working now, kinda of a stupid mistake on my part, thanks 👍
@rorschacht8478
@rorschacht8478 4 жыл бұрын
@@dairrizzle9715 Glad I could help.
@cheftechnique
@cheftechnique 9 ай бұрын
@@rorschacht8478Thank YOU! One little thing can really get you stumped this saved me!
@rorschacht8478
@rorschacht8478 9 ай бұрын
@@cheftechnique 👍👍
@michaelkaler3138
@michaelkaler3138 4 жыл бұрын
Great Video! I keep getting a shadow (best I can describe it) when my camera is close to the water. If I zoom out it goes away and I can see it grow as I get closer. Any idea what I missed in the process to revisit?
@777cube777
@777cube777 3 жыл бұрын
It's because you have "cast shadows" turned on on the mesh with the water material It fades when you zoom out because on your urp setting the "Max Distance" for the shadows is set to 50 (so it just stop rendering them)
@michaelkaler3138
@michaelkaler3138 3 жыл бұрын
@@777cube777 Thank you so much! So much to learn.
@while.coyote
@while.coyote 2 жыл бұрын
Great one, thanks!
@diabolo_44
@diabolo_44 2 жыл бұрын
Depth and foam dont work in orthografic view, plus someone know why i can see the foam effect through walls ? im using hdrp in 2021 version.
@diabolo_44
@diabolo_44 2 жыл бұрын
Solved, i accidentaly changed the depth teste in surface options --'
@Pukkichen
@Pukkichen Жыл бұрын
Can you please tell me how you make it work with orthografic view? I have no depth..
@thatguyinvop
@thatguyinvop 4 жыл бұрын
Nice video!
@vitolist8161
@vitolist8161 3 жыл бұрын
Thanks, helped a lot
@BinaryLunar
@BinaryLunar 3 жыл бұрын
You welcome!
@Klerosine
@Klerosine Ай бұрын
is this compatible with vrchat? cause I really wanna make this
@ChernobylComedyAndWings
@ChernobylComedyAndWings 3 жыл бұрын
i was a little confused because my depth was not working right off the bat, but then i just lowered the scale from 10. make sure you all adjust everything to 0-100 to see what is working where. good video but the very end you make it hard to see what youre doing.
@benayamanuel
@benayamanuel 4 жыл бұрын
Can you make the 2D version of this ? This just simply amazing
@WelshGuitarDude
@WelshGuitarDude 2 жыл бұрын
What about caustics and it should be a lit shader no?
@topusku
@topusku 3 жыл бұрын
Hmm, for some reason I can't seem to find the "Unlit Graph" option. It seems like the only options I can use are either a Blank Shader Graph or a Sub Graph.
@MaximumLowBlow
@MaximumLowBlow 3 жыл бұрын
Did you ever find a solution for this? I'm stuck on this now
@brianmcalpine822
@brianmcalpine822 2 жыл бұрын
@@MaximumLowBlow Using URP?
@letterborneVods
@letterborneVods Жыл бұрын
The depth fade isn't working. I did everything exactly like in the video, am using URP, but it just shows solid white. Any ideas?
@letterborneVods
@letterborneVods Жыл бұрын
Nevermind! Found it out. If anyone else wonders or comes across a similar issue, check out which shaders you are using around the scene depth, I was using a toon shader from the asset store and somehow it prevented the scene depth node from working.
@romyeichner9038
@romyeichner9038 4 жыл бұрын
I tried to create this beautiful water but there is no "DepthFade" node. I only have Scene Depth and this doesnt work. Can you help me please?
@BinaryLunar
@BinaryLunar 4 жыл бұрын
DepthFade node is sub-graph node , watch the section of creating "Depth Fade" sub-shader from 2:30 to 4:30.
@romyeichner9038
@romyeichner9038 4 жыл бұрын
@@BinaryLunar I missed this step for some reason. Thank you very much!!!
@mfransisw
@mfransisw 3 жыл бұрын
Why can't I export the water ? The refraction, and the depths are gone?
@evmoFPV
@evmoFPV 3 жыл бұрын
Any Ideas why the foam wouldn't render on mobile? Works perfectly in the editor.
@MrLonelyDK
@MrLonelyDK 2 жыл бұрын
for some reason the depth fade works in scene but not in the game tab
@NathoSteveo
@NathoSteveo 3 жыл бұрын
Great tutorial :)
@BinaryLunar
@BinaryLunar 3 жыл бұрын
Thanks /
@danieldarko
@danieldarko 3 жыл бұрын
Does anyone know how to make the water(any unlit graph) be affected by the directional light color? I have a day and night cycle in my game but when it goes night time the water is unaffected and remains bright colors.
@dinendash1166
@dinendash1166 3 жыл бұрын
make another water cube with the same shader but different colors for night and when it switches to night you change the night water cube to active and disable the day cube.
@marianmarian8882
@marianmarian8882 9 ай бұрын
or make it lit why would you keep it unlit?
@mariotudon7982
@mariotudon7982 3 жыл бұрын
my shader is only seen in game view but it is not seen in scene view, although in the tutorial it is seen that it should also be seen in scen view, is it something that I have not configured?
@vizualwanderer
@vizualwanderer 4 жыл бұрын
Do you think this logic would work on 2D, with few changes? currently I'm just using animated tiles this looks amazing!!
@Gorushkaa
@Gorushkaa 10 ай бұрын
Please let me know how you managed to get this shader to work with a 2d sprite?
@tekniko8213
@tekniko8213 3 жыл бұрын
Foam and some of the depth doesn't work with orthographic camera.
@EngGameDev
@EngGameDev 11 ай бұрын
Is there a way to convert this into an ortographic viewmode?
@BinaryLunar
@BinaryLunar 11 ай бұрын
I dont think so because that way eleminating the depth
@sabakunoxs7182
@sabakunoxs7182 3 ай бұрын
my depthfade has no distance slot
@Dhieen
@Dhieen 4 жыл бұрын
the foam doesnt work for me i dont even know why...
@captain_fact
@captain_fact 4 жыл бұрын
Try changing the alpha of your foam color. Mine wasn't working at first then when I changed it it worked
@inteletronx3564
@inteletronx3564 Жыл бұрын
Thanks. Looks Great! Now, can we swim in the water and see the shader of water intact while diving into it?
@xXbananaXxist
@xXbananaXxist 4 жыл бұрын
How come my substract is black and not white when connecting split and scene depth ?
@MrNaylor007
@MrNaylor007 3 жыл бұрын
Hi, did you find an answer for this? I'm experiencing the same issue now. If I find an answer I'll post it here
@MrNaylor007
@MrNaylor007 3 жыл бұрын
So I figured it out, maybe 2 months too late for yourself. But if anyone else has this issue then on the Scene Depth node, where it says Linear 01 change that to Eye and it should make the subtract node white now!
@Reakol
@Reakol 3 жыл бұрын
@@MrNaylor007 Absolute life saver mate!!!
@MrNaylor007
@MrNaylor007 3 жыл бұрын
@@Reakol glad someone found my comment helpful! It was an easy one to miss
@NockCS
@NockCS Жыл бұрын
Does this also work projects using the built in render pipeline instead of URP?
@BinaryLunar
@BinaryLunar Жыл бұрын
Yes recently Unity added the support of Shader Graph to the Built-in Render pipepline, just install shader graph from the pakage manager.
@ken880715
@ken880715 Жыл бұрын
Thank you very much!
@BinaryLunar
@BinaryLunar Жыл бұрын
You are most welcome 😊
@mohamadazharahawan7457
@mohamadazharahawan7457 Жыл бұрын
why my DepthFade only has Out_Vector only but the distance is gone??? help me
@P134-i3p
@P134-i3p Жыл бұрын
When you're in the subgraph, make sure to press "Save asset (top left of the window)" for the thing to update and show up
@supersentaimexicano1967
@supersentaimexicano1967 Жыл бұрын
Could u update the tutorial? For Unity 2020. There is no DepthFade and if you try to use Scene Depth It doesnt work
@13erk
@13erk Жыл бұрын
He spends from 2:35-4:20 showing you how to make the DepthFade subgraph. You make it first, then you can add it to the main graph
@deanfuest4129
@deanfuest4129 3 жыл бұрын
Great shader and tutorial! Any chance you can explain how to get rid of the camera clipping effect that occurs as the camera gets close to the edge of the water?
Zelda Breath of The Wild Toon Shader Graph - Unity Tutorial
18:00
Binary Lunar
Рет қаралды 61 М.
Unity Shader Graph - Toxic Waterfall Effect Tutorial
19:27
Gabriel Aguiar Prod.
Рет қаралды 101 М.
Oceans with Unity Shader Graph.
27:00
PolyToots
Рет қаралды 74 М.
Shader graph в Unity! Проще чем кажется! Шейдер граф
12:48
Яковлев Илья - IT и игры
Рет қаралды 33 М.
SIMPLE CARTOON WATER in Unity
13:26
Brackeys
Рет қаралды 589 М.
How I Created 2D Pixel Art Water - Unity Shader Graph
14:11
jess::codes
Рет қаралды 115 М.
Unity Shader Graph - Cartoon Water & Foam Shader Tutorial
19:40
Gabriel Aguiar Prod.
Рет қаралды 122 М.
your first water shader
3:54
Stylized Station
Рет қаралды 186 М.
Moebius-style 3D Rendering | Useless Game Dev
8:12
Useless Game Dev
Рет қаралды 861 М.
How to make a Water Shader with FOAM In Unity with URP! (Tutorial)
14:26