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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024
  • 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/dan...
    💀 Get the zombie sprite: kenney.nl/asse...
    📰 Read this tutorial in article format instead: danielilett.co...
    ------------------------------------------------------------------------
    📚 Get a copy of my shader book here (affiliate): www.dpbolvw.net...
    ✨ Grab my Hologram Shaders Pro package here (affiliate): assetstore.uni...
    ✨ Grab my Snapshot Shaders Pro package here (affiliate): assetstore.uni...
    ------------------------------------------------------------------------
    💬 Join the Discord: / discord
    💖 Support me on Patreon: www.patreon.co...
    ☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/dani...
    ------------------------------------------------------------------------
  • เกม

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

  • @gitaecookiemonster2892
    @gitaecookiemonster2892 8 วันที่ผ่านมา

    I love the fact that you explained the dithering technique!!

  • @dharmeshkumar2763
    @dharmeshkumar2763 9 หลายเดือนก่อน +8

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

  • @michaelwilson8461
    @michaelwilson8461 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน +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 9 หลายเดือนก่อน +5

    Really concise and to the point.

  • @truechina4514
    @truechina4514 2 หลายเดือนก่อน +1

    Very easy to understand and useful video.

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

    like this serie a lot, keep it up !

  • @Soulsphere001
    @Soulsphere001 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน +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.

  • @Rowland4825
    @Rowland4825 8 หลายเดือนก่อน +3

    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.

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

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

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

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

  • @twinfrozen1421
    @twinfrozen1421 8 หลายเดือนก่อน +3

    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 7 หลายเดือนก่อน +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 4 หลายเดือนก่อน

      BRO thank you . @danielilett pin this comment

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

      no i also got the same thing happen to me. i cant understand why

  • @LinkYTPvP
    @LinkYTPvP 9 หลายเดือนก่อน

    cool

  • @Роман-г2к8ч
    @Роман-г2к8ч 9 หลายเดือนก่อน

    hi could you show me how to make a puddle shader

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

    There is no transparent choice when using 2d shaders. how can i do this?
    Also this did not work at all what you showed