Wet Surface In Unity - Shader Graph - Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

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

  • @ShahzaibAliKhan-q7u
    @ShahzaibAliKhan-q7u 3 หลายเดือนก่อน

    How can I control the opacity of water puddles. Like, for example, I want to control the water puddles when the sun comes out. It should evaporate gradually.

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

      you can add a multiply at the end and with an expose parameter you can control the amount of the puddles. there are many ways to do it, it depends on how you want your puddles to look.

    • @ShahzaibAliKhan-q7u
      @ShahzaibAliKhan-q7u 3 หลายเดือนก่อน

      @@GameDevBox Thanks you so much mate! You helped a lot.
      If someone needs explanation :
      1- Add a Multiply node.
      2- Give RGBA of Sample Texture 2D of puddles to one of the Inputs of Multiply node.
      3- Create an exposed parameter of type Float and give it to the other input of Multiply node.
      4- Give the output of Multiply node to the Smoothness of Fragment node.
      Now on changing value of exposed parameter you can control puddles opacity.

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

      @@ShahzaibAliKhan-q7u Thank you, I pinned you maybe it could be helpful for someone. 🧡

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

      @@GameDevBox Thank you. I hope it does 💖

  • @authorizelifee2594
    @authorizelifee2594 ปีที่แล้ว +1

    Thanks man! Shaders are one of the hardest thing to learn in Unity, would appreciate even more shader tutorials!

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว

      of course, I will do my best. Thanks!

  • @sebluz4952
    @sebluz4952 ปีที่แล้ว +1

    any tips for adding colour to the ripple ?

  • @YoupiMatos2
    @YoupiMatos2 11 หลายเดือนก่อน

    thanks for the tutorial, the only problem I got is that the reflection only appears when looking towards -X. I don't know if there's a way to change that

    • @GameDevBox
      @GameDevBox  11 หลายเดือนก่อน

      a bit strange i should check to see why this happened

  • @shubhaggarwall
    @shubhaggarwall ปีที่แล้ว

    How can we add additional maps support to make it look more realistic like mask map height map etc

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว

      To accomplish this, simply create a Texture 2D and use the Sample Texture 2D function (make sure to enable the Normal option). Then, add this texture to any node that connects to the normal (fragment) using the Add Node.

  • @KamTV__
    @KamTV__ ปีที่แล้ว

    I followed the whole tutprial till we got to the inspector and i couldnt check decals because it wasnt there. Im using urp

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว +1

      Decals are a little different in URP. You need to add Renderer Feature (Decals Feature) to a Renderer. Follow this unity guide: docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/urp-renderer-feature-how-to-add.html
      also, be sure to use the latest Unity versions (2021 LTS+)
      More Information about Decals in URP: docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/renderer-feature-decal.html

  • @victor.novorski
    @victor.novorski ปีที่แล้ว +1

    Mobile friendly?

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว +3

      I don't think this will be a problem for mobile if you are using URP. HDRP is not compatible with mobile devices.