Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

LWRP - Outline Shader (also edges, not just outer outline)

Discussion in 'Shaders' started by newguy123, Aug 8, 2019.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    153
    Hi Guys

    In 2019.2 I'm using LWRP and I'm trying to get an affect of a toon like edge/outline

    I found various other threads SORT OF what I need, but only a few OLDER ones with actually what I need, but since they are older, I'm not sure how to make it work

    Here's some almost there examples:




    But really, those are only OUTLINES, but I also need the edges.

    Basically what I need is this:
    https://roystan.net/articles/outline-shader.html

    But no idea how to get this last one working with the latest 2019.2 Unity with LWRP 6.9.
    I made a new scene and just chose the default LWRP template, I added a single 1m X 1m cube and assigned a red LWRP Lit shader. Now what? The old post processing stack 2.0 seems to be not available anymore, or they renamed it to Post Processing Volume or Post Processing Layer, not sure whats the difference

    If anybody can help me get this going, I'd greatly appreciate it!
     
  2. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    153
    Nobody knows or nobody cares?
     
  3. Anti51

    Anti51

    Joined:
    Apr 20, 2017
    Posts:
    2
    The most recent Post Processing Stack v2 is available in the Package Manager.
    I'm not aware of independent "old" or "new" versions of it other than v1 or the one on github.

    And maybe this helps: https://alexanderameye.github.io/edgedetection.html
    I didn't try it yet. Seems a bit complex. But it came up while researching the subject.

    The one you are referring works for me, since i'm mostly in SRP.
    The keywords that helped me most are "edge detect shader".
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    6,973
    newguy123 likes this.
  5. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    153
    Errrrrr, I'm on 2019.3.0a12......but there's no LWRP in it in the startup template......
    How do I load the example stuff the from the github?
     
  6. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    6,973
  7. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    153
    Errrrrrr, so where can we get announcement for this stuff so we all know what is going on?
    LWRP just recently came out of preview, and now its already replaced by this new thing "Universal RP"

    Does that mean we can now get realtime GI with this Universal RP?

    EDIT: And yes, I missed the bit at the top of the page that says "Current Support 2019.3.0a10 with UniversalRP7" Thanks for that tip
     
  8. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    6,973