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. Dismiss Notice

Resolved (?) Custom pass not visible in final build

Discussion in 'High Definition Render Pipeline' started by pablobandinopla, Jul 16, 2023.

  1. pablobandinopla

    pablobandinopla

    Joined:
    Jul 2, 2021
    Posts:
    97
    I havve this setup, very simple, just a plain color material for objects on a particular layer and then a pass that makes that color pulse using the time to animate... this works on the editor but once i build (in my case windows/pc) i don't see the effect anymore...

    Any idea why could this be working on editor but not on final build?

    upload_2023-7-16_13-59-45.png
     

    Attached Files:

  2. pablobandinopla

    pablobandinopla

    Joined:
    Jul 2, 2021
    Posts:
    97
    In case someone has this issue, solved this by setting the lit shader mode to forward only in the HDRP setting:

    upload_2023-7-16_14-19-44.png

    "Forward" is stripped for opaque objects in deferred rendering in a build
    Reference: Custom pass volume does not work in build
     
    Rewaken likes this.
  3. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    242
    Setting the entire HDRP project to "forward only" might impact on your overall performance, depending on how you use real-time lights, etc.

    Why not set it to "Both" instead?
     
    pablobandinopla likes this.