URP Water Shader - Unity Shader Graph (Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024
  • In this video I show how to create a water shader using shader graph in Unity 3D for URP.
    Unity package for the URP Water Shader:
    github.com/mic...
    #gamedev #unity #unity3d #shadergraph #unitytutorial #unitytutorialforbeginners #unitytutorials

ความคิดเห็น • 25

  • @Novaree
    @Novaree 9 หลายเดือนก่อน +1

    Hey there. I'm a little confused: As you save the sub graph Wave Noise Sub Graph, both outputs are set to Floats. However, at 11:07, when you've added the subgraph to the shader, the output nodes are named Out_Vector1 and Out_Vector1_1. Did you change the output type of the subgraph to Vector's outside the recording?

    • @MichaelsGameLab
      @MichaelsGameLab  9 หลายเดือนก่อน +2

      Vector 1 and floats are interchangable. The name might have changed somewhere in between, but they are the same.

  • @antimeme5545
    @antimeme5545 2 หลายเดือนก่อน

    Hello, I'd like to apply this to a cube and it sort of works, but it makes a wave on the top and bottom surface. How can I make it so that it only makes waves on the top surface? Thank you

    • @MichaelsGameLab
      @MichaelsGameLab  2 หลายเดือนก่อน

      Hmmm... maybe you could do some sort of comparison with the object normal vectors where you only allow the waves if it is the top face. I am not sure though.

    • @antimeme5545
      @antimeme5545 2 หลายเดือนก่อน

      @@MichaelsGameLab also refraction seems to not work at all for some reason

  • @nileshkumawat6730
    @nileshkumawat6730 3 หลายเดือนก่อน

    Thank you sir for tiled water

  • @cashoto6324
    @cashoto6324 3 หลายเดือนก่อน

    At 11:08 I can't connect the add and combine nodes, do you know the reason for this?

    • @MichaelsGameLab
      @MichaelsGameLab  3 หลายเดือนก่อน

      Shadergraph can be weird sometimes :(

    • @cashoto6324
      @cashoto6324 3 หลายเดือนก่อน +1

      Turns out my texture wasn’t a LOD or sum

  • @cardinal6858
    @cardinal6858 7 หลายเดือนก่อน +1

    Hello, good tutorial but the refraction doesn't work while I import your project and I use unity 2021.3.38 (a close version of you) and URP. Did you make some specific change that you doesn't show in the video ? Like in the setting ?

    • @MichaelsGameLab
      @MichaelsGameLab  7 หลายเดือนก่อน

      Everything should be in the video. Maybe it's something in the render settings?

    • @niknikagain
      @niknikagain 2 หลายเดือนก่อน

      I have the same issue - all work fine except the refraction ((

  • @myssticarrows7296
    @myssticarrows7296 6 หลายเดือนก่อน

    amazing video when ur showing what to do you go a bit fast but no other complaints

  • @minimastudios_
    @minimastudios_ 4 หลายเดือนก่อน

    Hey! Thanks for this first of all. Just wondering - im having issues with my own noise textures. When i just use noise node it works, but if i try to use my own noise pngs it doesnt, do they need to be certain format in unity?

    • @MichaelsGameLab
      @MichaelsGameLab  3 หลายเดือนก่อน

      Are the dark parts of your noise png black or transparent?

    • @masoncrowe
      @masoncrowe 3 หลายเดือนก่อน

      @@MichaelsGameLabblack!

    • @MichaelsGameLab
      @MichaelsGameLab  3 หลายเดือนก่อน +1

      ​@@masoncrowemaybe try making them transparent instead. I sort of remember having a similar issue.

  • @harriet4611
    @harriet4611 7 หลายเดือนก่อน

    hi when i add the material to my subdivided plane it remains grey? I'm new to unity and not sure if there's a setting or anything I need on for this to work? lol cant get any water to work in my scene,even free assets remain pink help would be really appreciated!!

    • @MichaelsGameLab
      @MichaelsGameLab  7 หลายเดือนก่อน

      Do you have URP installed and configured?

    • @harriet4611
      @harriet4611 7 หลายเดือนก่อน

      @@MichaelsGameLab no, but ive tried looking for where I can download if and I cant find it anywhere, do you know how I can add it? :) thank u for replying btw

    • @raynoah6120
      @raynoah6120 7 หลายเดือนก่อน

      @@MichaelsGameLab Hello! same problem here! I installed URP but I dont actually know the config I should use for shaders of this type

  • @JamesOfToya
    @JamesOfToya 8 หลายเดือนก่อน

    But how do i make a boat to float on the water?

    • @MichaelsGameLab
      @MichaelsGameLab  8 หลายเดือนก่อน

      That is a more complicated issue.
      Acerola has a good video regarding this: th-cam.com/video/ja8yCvXzw2c/w-d-xo.htmlsi=Rg0AvNa9PR-7obhi
      It is not a tutorial, but has some good info.