Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

HDRP - Custom Pass Volume - Outline Effect

Discussion in 'High Definition Render Pipeline' started by smartpro0802, Jun 16, 2020.

  1. smartpro0802

    smartpro0802

    Joined:
    Oct 28, 2019
    Posts:
    5
    I am using Unity 2019.3.4 version and making an HDRP project.
    I'm using Outline Effect on this site.
    https://github.com/alelievr/HDRP-Custom-Passes

    I want to use more than two colors of Outline to give different colors to each object.
    I tried adding a new DrawRendersCustomPass and FullScreenCustomPass.
    But only one color was applied.
    I tried adding a new Custom Pass Volume, but this also only applied one color.

    How can I get two colors to appear on the same screen at the same time?
     
    Lex4art likes this.
  2. antoinel_unity

    antoinel_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    237
    Hey, In the "Selection" example of the repository, you can add a "SelectionColor" script on the outlined object to change its color. You shouldn't need to add another custom pass for this.
     
  3. smartpro0802

    smartpro0802

    Joined:
    Oct 28, 2019
    Posts:
    5

    I tried as you said and it really worked!!!
    Thank you very much!
     
    antoinel_unity likes this.