Search Unity

Edge Detection Effect?

Discussion in 'High Definition Render Pipeline' started by EthanFischer, Jun 27, 2020.

  1. EthanFischer

    EthanFischer

    Joined:
    Feb 10, 2016
    Posts:
    46
    Hi all,

    I stumbled upon this tutorial on how to create an edge detection effect using URP

    https://alexanderameye.github.io/outlineshader.html

    Basically, I want all the objects in my scene to have their edges outlines, like in this image:



    My project is using HDRP, but I thought I could give that tutorial a try anyway and make tweaks along the way. Unfortunately, I'm pretty new to shaders and visual effects and I didn't get far off the ground.

    Before I invest a bunch of effort into something that isn't possible, I thought I'd ask:
    -Is there a way to get this same effect in HDRP?
    -Are there any obvious tweaks to make in this tutorial that would make it work for HDRP? I couldn't find a way to get the textures it mentions using HDRP (e.g. that _CameraColorTexture).

    Any help on this tutorial or edge detection effects in HDRP would be appreciated!
     
  2. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589