URP Outline Shader - Unity Shader Graph (Tutorial)

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 46

  • @rambii.
    @rambii. 8 місяців тому +3

    Finally a tutorial on how to do hull outlines in shader graph. I've been searching for this for so long. Currently, I am using a hull outline shader that was made out of pure HLSL code, and because I don't know much about HLSL I couldn't expand on it to add other things. Finally, I can now do this in the shader graph. Thank you so much, man!

  • @_dimitrisbr
    @_dimitrisbr 8 місяців тому +1

    10/10, great tutorial, great shader!

  • @tyb.c.4332
    @tyb.c.4332 6 місяців тому +1

    Clear instructions, no dillydallying, great video! Thanks!

  • @PatrikBergsten
    @PatrikBergsten 9 місяців тому +4

    For simple geometry with hard edges you can calculate the offset direction instead of using the Normal Vectors directly.
    (Position(Space:World) - Object Position).Normalize
    That will keep the edges of a cube together. It will however not work on more complex shapes since the offset direction will be from the objects pivot point. But a cube or a dodecahedron would be fine.

  • @Boysle
    @Boysle 7 місяців тому

    Thank you very much for the video! It helped me a ton!

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

    This is amazing, thank you!

  • @VidyaStudios
    @VidyaStudios 7 місяців тому

    Dude, best outline shader out there thank you !

  • @jazzyleaf2317
    @jazzyleaf2317 7 місяців тому

    Thank you!!!! This is lifesaving!

  • @pmlomb
    @pmlomb 24 дні тому

    Nice to the point and simple. Suggestion for next you could do URP outline screen space post process in unity 6

    • @pmlomb
      @pmlomb 24 дні тому

      Cool thanks: ua-cam.com/video/JBpxSQrZRXg/v-deo.html

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

    thanks, really appreciate this tutorial 🙏🙏

  • @noosetime9423
    @noosetime9423 7 місяців тому

    it happens because they way light is calculated. simple version of it would be dot(normal,lightdir). because a normal is used rounding them essentially calculates light as if it is a rounded shape, making it look strange.

  • @thesuitablecommand
    @thesuitablecommand 4 місяці тому

    Great tutorial! This seems to be working for spheres, but for other 3d shapes it is misbehaving for me. If I try this with a cube, or any other shape with edges, the edges don't survive the inflation process. The outlining faces are all disconnected from one another. Do you have any idea what I might need to fix?
    Edit - oh, I need to just finish the video. You point this out yourself.

  • @tigerpok
    @tigerpok 9 днів тому +1

    I did EVERYTHING like you PIXEL PERFECT, but when i apply the material, it just makes the object FULLY BLACK! Please what can I do? Do you have Discord where I could show you the Graph?

    • @aseksk710
      @aseksk710 6 днів тому

      I was also suffering from the same phenomenon.
      However, when I replaced Front with Back(Graph Inspector -> Graph Setting -> Render Face), it now works as shown in this video. If you haven't solved it yet, please refer to this.

  • @MightySuper9
    @MightySuper9 9 місяців тому

    Really helpful, thanks!

  • @Lodred
    @Lodred 7 місяців тому

    Could you do a tutorial of an Outline Shader by sampling the Depth and Normal maps to have both internal and external?
    Im trying to learn how the URP works to achieve something like that

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому +1

      I think one of my next videos will be on the URP fullscreen shadergraph option and how to do an outline effect with the depth texture.

  • @AmbatukamOmaygot-bh6vd
    @AmbatukamOmaygot-bh6vd 3 місяці тому

    Tysm

  • @OfficialKaiVerse
    @OfficialKaiVerse 3 дні тому

    7:40 my game is literally just cubes XD

  • @umang9brainz
    @umang9brainz 21 день тому +1

    thanks you vidoe work in hdrp also it quality is average

  • @Hinkel84
    @Hinkel84 7 місяців тому

    Does it work for Unity 2020 aswell? Or just newer versions?

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      I think it should work for unity 2020, but I have not tested it in that version.

    • @Hinkel84
      @Hinkel84 7 місяців тому

      ​@@MichaelsGameLab the problem is, unity 2020 shadergraph is not supporting render face... like back or Front.

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      Oh, I see. Might need to update then :/

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

    why does no one add download links to the shader in the tutorials..

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

      Yeah, sorry. I am trying to be better about that. If I still have the project files, I will try to get them on GitHub and post a link.

  • @Krhey-0
    @Krhey-0 4 місяці тому

    Incredible, by chance you don't have a toon?

  • @Pumba_1989
    @Pumba_1989 4 місяці тому

    Hi, help me please. Why material color in shader can be pink?

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

      You might not have your render settings configured properly.

    • @RealNoodles
      @RealNoodles 17 днів тому

      @@MichaelsGameLab What are the proper setting and how to change them?

  • @biazwilosojati
    @biazwilosojati 7 місяців тому

    It's not working on me, after deal with shader graph the object that I assigned with materials graph doesn't show the outline shader. Anyone can help me?

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      Did you follow the video?
      If you did make sure to set an outline thickness for the material.

    • @biazwilosojati
      @biazwilosojati 7 місяців тому

      After watching the whole process making of an outline shader, then I create material from the shader. Even, try to create outline shader 2 times. The object doesn't want to show the outline. I don't know what is the issues...@@MichaelsGameLab

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      Can you see it if you remove the main material and only have the outline material assigned?
      You might also need to enable read/write on the model.

    • @biazwilosojati
      @biazwilosojati 7 місяців тому

      Oh well, I will check it back again... Thank you@@MichaelsGameLab

  • @lucutes2936
    @lucutes2936 7 місяців тому

    how do you mix this with a toon shader?

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      The toon shader would probably be the base material. The outline material for this method is added in addition to a base material. They would be separate both both added to the mesh renderer, if that makes sense?

  • @Shadow-gc1em
    @Shadow-gc1em 4 місяці тому

    No source material?

    • @MichaelsGameLab
      @MichaelsGameLab  4 місяці тому

      What do you mean?

    • @Shadow-gc1em
      @Shadow-gc1em 4 місяці тому

      @@MichaelsGameLab the final shader
      No repository or asset?

  • @CooperCleveland-p4i
    @CooperCleveland-p4i 2 місяці тому

    61687 Bartoletti Inlet