SNOW in Unity - SHADER GRAPH

  Рет қаралды 199,266

Brackeys

Brackeys

Күн бұрын

Let's learn how to make a cool Snow Shader in Shader Graph!
Check out XMLLayout! bit.ly/2VZocbu
● The shader is inspired by this amazing video: • Unity Shader Graph - R...
● Mayan Temple pack: devassets.com/assets/mayan-tem...
····················································································
❤️ Donate: www.paypal.com/donate/?hosted...
► Join Discord: / discord
● Website: brackeys.com/
● Twitter: / brackeystweet
● Instagram: / brackeysteam
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
········································­­·······································­·­····
♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

Пікірлер: 290
@PanCave
@PanCave 5 жыл бұрын
Just a quick math note: 3:47 "And because the dot-product of two parallel vectors is 1" That is not generally true. This is only true, if the product of the lengths of these vectors is 1. Typically, normal vectors have a length of 1, as well as automatically initialized direction vectors, so in this scenario it's true. But it could yield to some strange effects in other circumstances. Edit: A general solution to this would be to normalize the vectors. As stated by Small Pixel, changing the direction, whiteout changing the length is pretty hard. So by changing the direction, the intensity would also be changed. Solution: Normalize the vectors
@junpeiiori4720
@junpeiiori4720 5 жыл бұрын
yeah he should have said "unit vectors"
@smallpixel6874
@smallpixel6874 5 жыл бұрын
There is another thing - on 7:47 he changed the SnowDirection vector and it stopped being a unit one, so the dot product is not going to be 1 in this case and the snow will have more opacity than it should have on the sides.
@esben181
@esben181 5 жыл бұрын
I literally just learned about vectors today so I picked that up too
@scriptbrix
@scriptbrix 5 жыл бұрын
I reacted on the fact that he, at 4:59 used a clamp node to clamp the dot product between 0 and 1, this is incorrect but doesn't matter as long as the vectors are normalized. The correct procedure would be to first normalize both vectors and used the dot product of those.
@Brackeys
@Brackeys 5 жыл бұрын
This is very true. Thanks for pointing it out! :-)
@sambojinbojin-sam6550
@sambojinbojin-sam6550 5 жыл бұрын
Thanks Brackey. Loving your shadergraph tutorials. Always simple enough and well explained enough so that we know what you're doing, but also complex enough so I feel I can take the next step on my own with the basics I've learned to expand such effects into other areas or tweak them to be how I want.
@GabrielAguiarProd
@GabrielAguiarProd 5 жыл бұрын
It's quite an interesting shader isn't it? Thanks for the credit. Great video.
@GabrielAguiarProd
@GabrielAguiarProd 5 жыл бұрын
Here's my version just in case: kzfaq.info/get/bejne/h5pji6WqyM6ndY0.html
@PolyToots
@PolyToots 5 жыл бұрын
Be nice if he mentioned you in the actual videos though. This isn't the first time he's used your stuff.
@mmgame-devacademy3799
@mmgame-devacademy3799 4 жыл бұрын
Bro your channel have really cool shader tutorial Thanks bro!I also watch your shader tutorials.:D
@Lost1nTranslation
@Lost1nTranslation 5 жыл бұрын
Your videos keep getting better and better! (and they were already fantastic!)
@past874
@past874 5 жыл бұрын
Snow in a mayan temple? A conspiracy I say.
@humanbeing9140
@humanbeing9140 5 жыл бұрын
It never happened in Assassin's Creed 4
@leak5005
@leak5005 5 жыл бұрын
I watch his videos and I don't even code anything I just find it super relaxing to watch him code.
@bbugarschi
@bbugarschi 5 жыл бұрын
nobody: Barckeys: "XML in general is very fun and easy to work with"...
@benmeister
@benmeister 4 жыл бұрын
lol
@steffennilsen2132
@steffennilsen2132 4 жыл бұрын
The things you say for money
@ChaosCreations0
@ChaosCreations0 5 жыл бұрын
I just wanted to say a thank you for your explanation of Dot Product, it was very concise and finally helped me to understand its purpose for future applications!
@romisflasher
@romisflasher 5 жыл бұрын
Thank you so much! Your videos aren't the first time they are helping me out. By the way, here you can add a TilingAndOffset after the NormalVector to adjust the height of the snow cap and adjust along the "Y" axis
@Definitely_a_Fox
@Definitely_a_Fox 5 жыл бұрын
I was kinda hoping you'd use vector displacement to allow the snow to actually pile up, but this is a great video anyway!
@BJ-wz2mu
@BJ-wz2mu 5 жыл бұрын
Is that blackthornprod merch, its so wholesome for you to be wearing it. Love the unity community! Great video brackeys.
@Oxmond
@Oxmond 4 жыл бұрын
❄️Let it snow!!! Great tutorial as usual! 👍🤓
@GameSupporterBen
@GameSupporterBen 5 жыл бұрын
I was just wanting to do something with snow he other day in Unity! Thanks, Brackeys!
@harrytaylorj
@harrytaylorj 5 жыл бұрын
Brackeys! One thing that I noticed in your video is when you changed the shader for all of the materials in the full environment, it changed the Base Map of all the floor!! Look closely at 13:34, all the floor has the 'dungeon_set_02_atlas_01' texture instead of their pre-existing texture. You have to change the base map manually afterwards to get the snow on the floor tile textures
@cameronschiralli3569
@cameronschiralli3569 5 жыл бұрын
Wonderful tutorial. Also, nice shirt there
@Jabrils
@Jabrils 5 жыл бұрын
tight
@Cortus
@Cortus 3 жыл бұрын
It's wild that it's been a year and no one thumbed up or geeked out that Jabrils commented!
@justinwhite2725
@justinwhite2725 5 жыл бұрын
Omg I’ve been wanting to do this awhile but for sand (which is similar) thanks!
@wesplybon9510
@wesplybon9510 5 жыл бұрын
Should have named that variable "Snowpacity" Great video!
@albarnie1168
@albarnie1168 5 жыл бұрын
a good idea is to factor in the normals and ambient occlusion for snow
@looserdev
@looserdev 5 жыл бұрын
Hi Sebastian! i just wanted to say i love your videos, and you give me a smile every day, i really love the way you're teaching and it just sucks to see your tutorials then see someone else's tutorials.. :P anyways, thanks for making all of those tutorials over the years, and i hope you would continue doing it for a long time :)
@muncheybobo3772
@muncheybobo3772 5 жыл бұрын
Rain puddle shader next please. :) Loving the shader graph tutorials. Keep it up!
@roxannafabiolastefaniuc3606
@roxannafabiolastefaniuc3606 2 жыл бұрын
You are really good in this. Thank you for making this video too ^^
@TimeInRain
@TimeInRain 3 жыл бұрын
It really helps a lot! I love it so much!!!
@StaredownGames
@StaredownGames 5 жыл бұрын
this stuff blows my mind, lol It's why I subscribed in the first place. Good job Brackeys! Can you do a modern road tutorial? I can't figure it out.
@sophiasun817
@sophiasun817 5 жыл бұрын
Oh my god. Thank you so much!!! It is so wonderful and useful!
@derulan6111
@derulan6111 5 жыл бұрын
The forecast is a chilly 10 degrees with heavy lambertian snow
@omri_st4046
@omri_st4046 5 жыл бұрын
Hi I realy liked this video but I think you should do more series about creating a game (many videos about the same game), you did this before and you improved your Unity skils so much sience you started uploads videos into youtube. This is so important because every video that you upload is so helpful for me personatly.
@robertmcdonell831
@robertmcdonell831 3 жыл бұрын
Loving that BlackThornProd shirt
5 жыл бұрын
It's a bit of a trick but I think it works wonders! Very nice!
@MizoxNG
@MizoxNG 5 жыл бұрын
I made something similar to this in shaderforge at one point, but with more values, it chose between 3 different textures depending on the geometry normal, then set the texture coordinates based on the world space
@BeardedCatDad
@BeardedCatDad 5 жыл бұрын
Great tutorial! I would love something similar but with wetness :)
@johnnydalvi3978
@johnnydalvi3978 5 жыл бұрын
nice, you could add some vertex displacement on the y axis too btw
@gigos2
@gigos2 4 жыл бұрын
AMAZING! YOU ARE SIMPLY AMAZING!
@okaybenji
@okaybenji 5 жыл бұрын
thanks so much for this and all your wonderful videos! would you please expand on this to add the *sparkle* you’d see in snow or sand in games like journey and uncharted? the sparkles appear in randomized positions based on the position and angle of the camera, which simulates the individual grains/snowflakes having random angles and catching the light from the sun as you move around. also, since snow adds some volume/puffiness, it would be nice to see how we could smoothen and expand the scale of the models slightly where the snow shows up!
@johndeleon8741
@johndeleon8741 4 жыл бұрын
You still have to apply the material to every object you want snow on which will affect performance. Also what if you wanted to add footsteps or skid marks? This needs to be converted into a post-process shader, I think.
@tsukuyomin
@tsukuyomin 5 жыл бұрын
That's a lovely blackthornprod t-shirt you have there.
@Welnianyy
@Welnianyy 5 жыл бұрын
The half of the may... you know.. spring.. about... 68°F/20°C outside... Brackeys: HMM LET'S MAKE A SNOW SHADER!
@guilleacq
@guilleacq 5 жыл бұрын
Well, I mean; the world has plenty of countries with different seasons, you know?
@Welnianyy
@Welnianyy 5 жыл бұрын
@@guilleacq oh, u are totally right.. i didn't think of that..
@esben181
@esben181 5 жыл бұрын
I did not know that about the dot product, thanks
@raigallino
@raigallino 2 жыл бұрын
I miss u brakeys
@kennethvedder
@kennethvedder 4 ай бұрын
Man, I miss this dude
@fardinmoqamzada2771
@fardinmoqamzada2771 5 жыл бұрын
thanks From you Great Services dear Absjorn
@Deepankarsingh1993
@Deepankarsingh1993 5 жыл бұрын
Barkeys, can you make shader graph tutorial for making LWRP shader for speedtrees
@user-fh7ki5bv5x
@user-fh7ki5bv5x 5 жыл бұрын
can we get a barkeys in chat?
@JulioCesarCruzaltaNarvaez
@JulioCesarCruzaltaNarvaez 2 жыл бұрын
Thank you very much!!! :)
@gameexplorer4963
@gameexplorer4963 5 жыл бұрын
Very nice. It would be interesting to see this applied with a nice mask, to better define the borders.
@arzifactstudios2146
@arzifactstudios2146 5 жыл бұрын
Making it easy again Brackeys 🤪 Next video mud on a tank driving? Thanks Brackeys!
@ashpats2
@ashpats2 5 жыл бұрын
Same as this, but take normal direction Vector3.down instead of up and change color from white to muddy
@pekame
@pekame 5 жыл бұрын
@@ashpats2 is not coding you don't have vector3.down and in this he uses normal vectors not vector 3
@JohnWeland
@JohnWeland 5 жыл бұрын
It would be really neat to control the snow direction from wind direction over time. so on a map, if its snowing and the wind is coming from the north the snow builds up more on the north, likewise over time if the wind changes to coming from the east snow would pile up more on the east.
@Dante4F8
@Dante4F8 5 жыл бұрын
Is the Base Map suposed to get swapped automatically? I tried to do this with the base LWRP scene but I ended up needing to swap the map manually.
@Mantajochem
@Mantajochem 5 жыл бұрын
As always, great tutorial! Do you have any plans on a new Tutorial Series on how to create an Online Multiplayer Game (FPS) with Unity, since UNet is deprecated now? Would really like to see something like this! Thank you.
@NarTheNecromancer
@NarTheNecromancer 4 жыл бұрын
Is there a way to do this without having to go in and manually change the base map for each material?
@Atezian
@Atezian 3 жыл бұрын
Im thinking that right now. :-( its not uncommon to have 100s of materials in a project
@softandsgame4874
@softandsgame4874 5 жыл бұрын
The winter is comi... Sorry it's finish :( Good effect brackeys !
@melonheadwt
@melonheadwt 5 жыл бұрын
nobody : brackeys : uses a country flags image as a texture
@hermesdavidms
@hermesdavidms 5 жыл бұрын
great stuff, i love this kind of tutorials. on a side note, yeah sure, mayan ruins covered in snow, instead of the usual scorching heat they are usually in
@YulRun
@YulRun 5 жыл бұрын
Does this automatically take the previous base map? or would you have to manually add them for every single texture?
@walterwhite42068
@walterwhite42068 5 жыл бұрын
Just what i needed alongside your water tutorial and grass sway to create an awesome level.
@fecoramirez
@fecoramirez 5 жыл бұрын
Right on time ♥ Thank you guys.
@erikvas2558
@erikvas2558 5 жыл бұрын
Can we get a tutorial on IK animation sometime in the future? There are some tutorials for foot placement, but I need Brackeys quality tutorial for this ;)
@NinjatoBlade
@NinjatoBlade 5 жыл бұрын
I’m kinda confused how you created the template on one material but you can apply them to all? Does it override the base? Anyway, amazingly comprehensive video, thank you!
@OdemGeek
@OdemGeek 3 жыл бұрын
Thanks, i modified this to work also with normal map, for stones on walls)
@allex3842
@allex3842 5 жыл бұрын
Awesome. Best unity channel out there.
@rashiddev7545
@rashiddev7545 5 жыл бұрын
How about next video about Character footprints? I can't find any videos about this topic anywhere!
@joshpeace2673
@joshpeace2673 5 жыл бұрын
You could instantiate a footprint "decal" with a deep hight and normal map at your foot position while walking Public bool isRightFoot; Public game object Footprint; Game object right foot bone; Game object leftfootbone; Void walking () [ Movement code here ; SpawnFootPrint (); ] Void SpawnFootPrint () [ IsRightFoot == ! IsRightFoot If (isRightFoot==true) [ Instantiate Game object Footprint(footboneRIGHT.transform.position.location) ] Else [ Same as above but for left foot bone ] ] Hope this helps also put a destroy timer script on your decals for clean up
@curranh.8328
@curranh.8328 5 жыл бұрын
@@joshpeace2673 the hero we need, but dont deserve...
@joshpeace2673
@joshpeace2673 5 жыл бұрын
@@curranh.8328 have you tried the code I haven't used unity in a while and have forgotten some of the unity spacific syntax and structure so I hope this works for you
@curranh.8328
@curranh.8328 5 жыл бұрын
@@joshpeace2673 I haven't tried it myself, yet, its 3 AM 😂 But you basically accomplished most of the legwork from what I can see, I greatly appreciate it! I'll come back for this soon, and I'll let you know when I do
@KimboKG14
@KimboKG14 4 жыл бұрын
you should add the normal map to the world space position before calculating the dot product. than the mold between the bricks would become snowy too
@marcospires8350
@marcospires8350 5 жыл бұрын
I'm very happy when I get a notification of your video
@lukass1604
@lukass1604 5 жыл бұрын
Please do another tutorial seriese. But for medium level. Thanks and love your videos they wäre so helpful!
@asmkawsar
@asmkawsar 5 жыл бұрын
Cool Tut.. want more
@DarkLightBoy
@DarkLightBoy 5 жыл бұрын
You have to blockthornprod Merch 😂
@zentergames1622
@zentergames1622 5 жыл бұрын
Snow is easier with you, good video
@TubeGuy1
@TubeGuy1 5 жыл бұрын
pls if you can, It would be really awesome of you if you made a parallax shader or a tesllation shader. all the shaders that I have found are old and they dont work or the texture isn't posible to multiply or add other details. thank you for this videos they are pretty sweet and they help a lot of people.
@arthurdsjrjbr
@arthurdsjrjbr 5 жыл бұрын
Can you make a tutorial on Shader Graph high Grass/mud/dirt/snow that gets stomped/crushed/deepened when you step on it?
@komamon5566
@komamon5566 5 жыл бұрын
Can you make a video about animation state behaviours?
@magnusm4
@magnusm4 5 жыл бұрын
I'd love a more detailed video on the animation and animator and ways to have it interact with scripts. Like executable code in Scriptable Objects and calling methods in the animation. Like for example a method being called right when the animation of a gun pulls back the hammer which reloads the gun, so no need to program in the time it takes for the animation to finish or based on it's length
@jojobee228
@jojobee228 5 жыл бұрын
Is it possible to add thickness for the snow? Add round dome shape some sorts by using shader graph?
@dark_3253
@dark_3253 5 жыл бұрын
which is the best software for making video game unity or unreal engine beacause i am a beginner in developing game and i am new in your channel please tell me please
@Feyhua
@Feyhua 5 жыл бұрын
recently i got to look at a game called the Last Night, any idea how to recreate the "2d in 3d effect"? It seems very liberating for pixel art games, and I wanna try playing around with it, but have no idea where to start.
@MisterRhubarb
@MisterRhubarb 5 жыл бұрын
Any ideas how heavy this kind of shader would be? Is there any way this could be reasonably used on mobile without extreme optimization, or maybe on Oculus Quest in VR? Thanks in advance! :)
@EMPERENIKA
@EMPERENIKA 2 жыл бұрын
Yes Since it Bee appied real time this is not performant
@zachsimons9334
@zachsimons9334 5 жыл бұрын
I know this probably won't get seen but a tutorial on 3d grappling hooks/line renderers would be nice. There aren't many tutorials on those topics out there.
@sirstrik7402
@sirstrik7402 5 жыл бұрын
the hook is too apex for me but a line rendering tutorial would be awesome to learn for rope, electrical lines etc
@muteryu273
@muteryu273 5 жыл бұрын
I wonder if I could use this for rain puddles
@yefersonramirez9585
@yefersonramirez9585 4 жыл бұрын
I have a question, it's posible achieve the same effect in 2D objects, in shader graph? I'm new in this of shaders but i'd like to learn more.
@BrainSlugs83
@BrainSlugs83 4 жыл бұрын
Can you show us how to do an eyeball material with shader graph? Doesn't have to be super photo realistic, just a cool cartoon / anime eyeball effect.
@ghostinteractive
@ghostinteractive 5 жыл бұрын
Can you please make a video on zoom / magnification shader with shader graph.. thanks in advance
@pekame
@pekame 5 жыл бұрын
I think if you would add a bit of emission would give a nicer effect
@steel7274
@steel7274 5 жыл бұрын
Hey brackeys remember your how to create a game series, I really need help in adding like a custom splash screen after the made with unity one
@Vimerum
@Vimerum 5 жыл бұрын
LWRP is great, until you need two directional lights
@Lost1nTranslation
@Lost1nTranslation 5 жыл бұрын
Whats the issue? I haven't used it too much
@Vimerum
@Vimerum 5 жыл бұрын
@@Lost1nTranslation It only uses the directional light with the highest intensity, so you can't have two or more at the same time :(
@Lost1nTranslation
@Lost1nTranslation 5 жыл бұрын
@@Vimerum oh I see, is this a bug or intended? I'm new to Unity also so I don't know why two directional lights would be used either.
@brodakarat6340
@brodakarat6340 2 жыл бұрын
10:30 how are all the materials changed without the base map resetting to the default?
@liammcelwain5127
@liammcelwain5127 5 жыл бұрын
Do a voluemtric cloud shader for hdrp next video!
@TheRealLimerock
@TheRealLimerock 5 жыл бұрын
@Brackeys Adding vertex displacement on the snow might give some cool results... *pun intended* ;-)
@pratibhakumari3740
@pratibhakumari3740 2 жыл бұрын
Is this dynamic like will the snow still be on top if you rotate objects
@Euzuner41
@Euzuner41 5 жыл бұрын
This channel so nice man ı wish ı can understand english
@ScorgeRudess
@ScorgeRudess 5 жыл бұрын
This channel is not about game dev anymore. Is a shadergraph tutorial channel 😂
@djdomain
@djdomain 5 жыл бұрын
I like the shadergraph stuff, I think of it as the front-end for adding visual effects to make a game pretty, whereas the vids about game mechanics are back-end. Maybe make some suggestions on what you would like them to cover.
@okumano1912
@okumano1912 5 жыл бұрын
Could you make a tutorial about combo systems for 2d games?
@lusun8820
@lusun8820 Жыл бұрын
If all materials use this shader, how to make the surface of the blocked object free of snow, such as indoor, tunnel?
@rokolix6544
@rokolix6544 5 жыл бұрын
Could you show the slope movement in 2D ? Is there a easy way ?
@pissmilker2313
@pissmilker2313 5 жыл бұрын
Dude, it's almost June.
@Vimerum
@Vimerum 5 жыл бұрын
Winter is coming in the south hemisphere
@MichaelGGarry
@MichaelGGarry 5 жыл бұрын
You mean the time of the year people are making games for the winter and Xmas seasons?
@TheSpacecraftX
@TheSpacecraftX 4 жыл бұрын
This only works for scenes where they all use the same texture atlas though right?
@Pogal
@Pogal 5 жыл бұрын
Please can you do fur because I can't find a decent tutorial for that anywhere.
@armanx2
@armanx2 4 жыл бұрын
That was cool, can you do breakdown of red dead redemption 2 snow effect ? i have never seen such snow
@TheSixoul
@TheSixoul 3 жыл бұрын
God of War and Horizon Zero Dawn say hi
@random_precision_software
@random_precision_software 5 жыл бұрын
Can modify it in a script?..so it get more snow over time
@LahceneBelbachir
@LahceneBelbachir 5 жыл бұрын
Yes just modify the Snow Opacity variable, like this: renderer.material.SetFloat("SnowOpacity", 0.5f);
@kodsxtreme.1359
@kodsxtreme.1359 5 жыл бұрын
Can you try and make a tutorial on how to make a bounce pad Something that will launch you up to another platform, I need to find out how to bcs I can’t find it anywhere and I was making a platform game that had a block that boosts you in the air to another block When I type launchpad it does come up with the right thing
@magnusm4
@magnusm4 5 жыл бұрын
With so many videos on the new lightweight pipeline which allows dumb non shader code gods like me to get great effects and visuals to my game. Can we do a video on another great visual feature regarding light, the light probes? It's a very interesting method of getting high quality light and reflection from other objects and the surroundings to get a baked light quality to moving objects instead of just static. The tutorials i've seen make it remind me of old school shooters like Blood where the light is cut diagonally and when you enter and leave it darkens or brightens you weapon and enemies the same way I see light probes work in these tutorials.
@leogcavalli
@leogcavalli 5 жыл бұрын
3min he's talking about the vectors and all I can think is holy fuck what a motherfucking good content
@tranceemerson8325
@tranceemerson8325 5 жыл бұрын
that's nice.. how about stacking the snow up?
@miknios
@miknios 5 жыл бұрын
Take those dot products calculated in video and mess with displacement using them
@alicewithalex
@alicewithalex 5 жыл бұрын
Hello, very nice! Can you make tutorial on 3d rope?
2D Lights in Unity!
13:46
Brackeys
Рет қаралды 631 М.
Shader graph в Unity! Проще чем кажется! Шейдер граф
12:48
Яковлев Илья - IT и игры
Рет қаралды 26 М.
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,3 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН
Brackeys Game Jam 2020.2 - BEST GAMES!
11:31
Brackeys
Рет қаралды 541 М.
Unity Shader Graph Basics (Part 4 - The Depth Buffer)
8:36
Daniel Ilett
Рет қаралды 11 М.
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,1 МЛН
Unity Shader Graph Tutorial - Snowy Mountain Shader
9:32
帕羅 Paro
Рет қаралды 1 М.
Unity Shader Graph - Terrain Scanner Effect Tutorial
12:30
Gabriel Aguiar Prod.
Рет қаралды 21 М.
Unity Shader Graph Basics (Part 2 - Textures and UVs)
8:03
Daniel Ilett
Рет қаралды 17 М.
Dithered Transparency in Unity Shader Graph
7:38
Daniel Ilett
Рет қаралды 4,7 М.
Basics of Universal Render Pipeline (URP) in Unity 2019.3
12:53