Unity Shader Graph Basics (Part 3 - Transparency and Alpha)

Поділитися
Вставка
  • Опубліковано 10 гру 2023
  • Transparent rendering works differently to the opaque rendering techniques we have seen so far. Learn about alpha-blended transparency, alpha clipping, and dithered transparency in Part 3 of this tutorial series!
    I'm using Unity 2022.3.0f1, although these steps should look similar in previous and subsequent Unity versions.
    ------------------------------------------------------------------------
    👇 Download the project on GitHub: github.com/daniel-ilett/shade...
    💀 Get the zombie sprite: kenney.nl/assets/toon-charact...
    📰 Read this tutorial in article format instead: danielilett.com/2023-12-11-tu...
    ------------------------------------------------------------------------
    📚 Get a copy of my shader book here (affiliate): www.dpbolvw.net/click-10074214...
    ✨ Grab my Hologram Shaders Pro package here (affiliate): assetstore.unity.com/packages...
    ✨ Grab my Snapshot Shaders Pro package here (affiliate): assetstore.unity.com/packages...
    ------------------------------------------------------------------------
    💬 Join the Discord: / discord
    💖 Support me on Patreon: www.patreon.com/danielilett?f...
    ☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
    ------------------------------------------------------------------------
  • Ігри

КОМЕНТАРІ • 17

  • @truechina4514
    @truechina4514 7 днів тому +1

    Very easy to understand and useful video.

  • @dharmeshkumar2763
    @dharmeshkumar2763 6 місяців тому +8

    You have great teaching skills. Please keep this series continuing.

  • @michaelwilson8461
    @michaelwilson8461 6 місяців тому +7

    Ive been working through the UnityLearn section on shaders for a couple of days now, and gave up and decided to hit youtube.
    After 3 videos clocking in at around 10 minutes each, I already understand a lot more about shader graph than I did trying to follow Unity's site.
    The Unity site walks you through creating some pretty neat shaders, but after you're done you have no idea why you used the nodes you did, what nodes you would want for any particular effect.
    Just paint by numbers and follow along.
    I appreciate them putting the material up there , but with out explaining the components to people your not teaching them how to use shader graph, your teaching them how to copy what you've done in shader graph.
    Personally I was looking to understand shaders a little better, not just how to implement a particular effect.
    So this kind of content is exactly what I was looking for to get a foundation to build on. So long story short, thanks for taking the time to do this series.

    • @danielilett
      @danielilett  5 місяців тому +2

      I think both styles are useful! I'd definitely say that getting the fundamentals down first (i.e., what these videos are doing) is important, because then you have the tools to understand yourself *why* the nodes in the Unity Learn videos go well together. It's definitely something I worked out slowly over time by making lots of shaders. Glad I could help!

  • @user-ue1gr6si9z
    @user-ue1gr6si9z 6 місяців тому +5

    Really concise and to the point.

  • @christianschneider8516
    @christianschneider8516 6 місяців тому +2

    like this serie a lot, keep it up !

  • @VYKco
    @VYKco 5 місяців тому

    keep making these!!!!!!!! : D

  • @Soulsphere001
    @Soulsphere001 Місяць тому +2

    For this to work, one must set the material's 'Surface Type' from 'Opaque' to 'Transparent' as well. It took me some time to figure that out. At least for HDRP.

    • @danielilett
      @danielilett  Місяць тому

      Yes, you're right - I don't use HDRP as much so I forget it's sometimes quite different to URP. The same would be true in URP if you tick the Allow Material Override option in the Graph Settings! It's a bit strange the material doesn't default to the graph's default settings, though.

    • @Soulsphere001
      @Soulsphere001 Місяць тому +1

      @@danielilett
      Yeah, it seems odd that that's not the default. One would think that we want the shader to take over, since that's kinda the point of using a shader in the first place.

  • @HBGoneGlobal
    @HBGoneGlobal 3 місяці тому

    I have an issue with my textures looking washed compared to a standard shader.

  • @LinkYTPvP
    @LinkYTPvP 6 місяців тому

    cool

  • @user-tb1ms7wz3q
    @user-tb1ms7wz3q 6 місяців тому

    hi could you show me how to make a puddle shader

  • @Rowland4825
    @Rowland4825 6 місяців тому +2

    Could you please re-do this one I think i understood what you said but there was no way to follow along and do it with you on the alpha clipping parts.

  • @twinfrozen1421
    @twinfrozen1421 6 місяців тому +2

    5:17 when i plug the A(1) to Alpha(1) it's not worked then i change it to R(1) to Alpha(1) its worked. 🤨
    Thanks for the video btw i'm a beginner i did something wrong probably. ^^

    • @sethsmucker7093
      @sethsmucker7093 4 місяці тому +2

      Just had this issue too! It comes from having 0 alpha for the Base Color. As soon as I added the alpha back it worked fine.

    • @Ehsanfaraji8
      @Ehsanfaraji8 2 місяці тому

      BRO thank you . @danielilett pin this comment