Wet Surface In Unity - Shader Graph - Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Greetings everyone! In this tutorial, we'll  be creating a wet shader that you can use   on a plane, road, stone, or anything  else that's suitable for your project. Let's first create a 3 D object and resize it.   I have some textures here that you can get  from a free website or the video description. Be sure to use HDRP or URP or download the shader  graph Package and then create a lit shader graph.   after that right click on shader and choose the   material option and drag it to the  plane or whatever object you have.   open the floor shader. if you know or have experience with sample  texture and tilling offset nodes it's going   to be so easy for you otherwise don't worry  just follow me I will explain every detail. so, we need to make some properties  to can have access from the inspector.   the 3 of them are texture 2 D. the first  one is the main texture and the second   is the normal map of the main texture and  the third one is for the puddles texture. Let's add two more properties of Vector 2 to  change the size and offset of the textures. Connect the Diffuse to the sample texture. there  will be times when you want to manipulate the UVs,   tilling or offset of your textures, normals,  or results of a gradient. this is when the   tilling and offset node becomes useful.  now Connect the MainTiling to the Tilling. We repeat this process for the normal map  and puddles. Care when you want to use a   sample texture as the normal map, you should  change the type of it to the normal map. Here, we did a little trick to smooth the puddles   tiling by connecting the output  to another tiling and offset. Add a Blend node, the base is the main texture  and the blend one is puddles, but we don't want   the alpha of the puddles texture, so let's invert  it and then connect it. Then change the opacity   to a number less than 0.5 and change the mode  to Multiply. That's all for the base color. I have better results when I connect the  puddles texture to the smoothness, so why not? Then, let's blend the Ripple  and normal together and use the   puddles alpha for opacity and  change the mode to Overwrite. Now, let's add Ripple Texture  and Tiling properties.   It makes it so realistic if  we add flow to the surface,   so we need the two other  properties as a float for it. Another sample   texture for Ripple. don't forget  to change the type to Normal. We want our Ripple to move,   so we should change the offset here  to the speed multiplied by the time. Do this again for Flow, but connect  the tiling and offset to the Simple   Noise and make the scale of  noise to a smaller number. Save this data   to a UV by Blend node.   And here, the mode should be Divide or Screen;   I don't really know which one is  best Here. you can change them later. After connecting them to Normal and   cleaning up here, save the Floor Shader  and switch to the Floor Inspector. Now it's time to place the textures  and give them a random number. The puddles texture must be  white and black like I have. Now, after smoothing the puddles on the  main texture, you can see them better. The Ripple texture should be a normal map. Now, if your water is like here, go  to the water texture and enable the   Create from Grayscale, and set  the bumpiness to a small number. I have ready-made decals prefabs, if I  put them here, it's like I created a road. Some of you may ask, can  this water reflect objects?   The answer is yes, with a reflection  probe or if you're using HDRP like me,   by adding a screen reflection to the volume  and enabling that in your HDRP asset. Thanks for watching, I hope you enjoyed  . Don't forget to like and comment.
Info
Channel: Game Dev Box
Views: 4,700
Rating: undefined out of 5
Keywords: GolomOder, Learn, game developer, Unity, C#, blockchain, unity shader graph tutorial, unity shader graph, shader graph, wet shader unity, wet surface unity, unity wet surface shader, make your game look better, make your game look better unity 3d, Road unity, how to make city in unity, City unity, unity magic, unity 3d, 2023, unity tutorial, unity tutorial for beginners, unity tutorial 2022, how to make your game realistic unity, code moneky, brackeys, Show-off unity, unity anime
Id: bwL-420wjzM
Channel Id: undefined
Length: 10min 19sec (619 seconds)
Published: Mon Jan 16 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.