Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Render a custom pass

Discussion in 'Universal Render Pipeline' started by AnttiVerajankorva, Apr 20, 2021.

  1. AnttiVerajankorva

    AnttiVerajankorva

    Joined:
    Nov 4, 2019
    Posts:
    1
    I want to render glow emission pass, a grayscale image where white part parts are more "glow". I want to render this into a texture and use it in shader later to create the actual glow. However I have an issue.

    I made render feature which render this emission texture. I'm using same shaders as rendering normally, but set _ENABLEGLOWPASS shader feature on when rendering a texture and then I disable it to render normally, but can't this working. I get either normal render in texture and game view or emission pass on texture and game view. Can't get it working so that game view would be rendering everything with shader feature off and render feature render everything with shader feature on.

    So my question is, how could I render the scene in render feature with enabled shader feature? Any ideas will be appreciated.