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

HDRP forward vs deferred per material

Discussion in 'General Graphics' started by mariusgeorge, Mar 4, 2019.

  1. mariusgeorge

    mariusgeorge

    Joined:
    Jan 29, 2016
    Posts:
    18
    Hey all!

    According to the documentation:

    "When using a Lit Shader In HDRP, you can set each Material to use Forward or Deferred rendering. "

    Source: https://github.com/Unity-Technologies/ScriptableRenderPipeline/wiki/Forward-And-Deferred-Rendering

    Well - after setting Supported Lit Shader Mode to "Both" in the HDRP Asset, I still cannot find a way to force a particular material to use Forward rendering.

    Is this really currently supported as the documentation implies?

    Asset setting:

    upload_2019-3-4_10-33-45.png

    Material:

    upload_2019-3-4_10-36-19.png

    Any ideas?

    The background to this is that reflection probes in deferred do not support all the same features as in forward mode. For example, forcing a roof mesh to use the default sky reflection, and not be influenced by overlapping reflection probes set up for the interior of a house. I want to render the roof in Forward mode so that reflection probe features can all be used.

    Thanks!
     
  2. kelloh

    kelloh

    Joined:
    Mar 2, 2015
    Posts:
    29
    Also wondering about this question. It seems like the documentation is out of date?
     
  3. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi,

    we will update the doc as it is not clear. Thanks for notify it.
    regarding the Deferred / Forward selection you aren't at the right place. The deferred / forward is for a camera, not for individual material. So for a given camera rendering you can select if you render in forward or in deferred.

    You can either set deferred or forward on the HDRP default Settings, or override it per camera on the FrameSettings of the camera.

    Rendering Pass on the Material are mainly use for transparent to say if you render in quarter resolutoin or before refraction, with opaque there is no effect. We may need to hide it to avoid confusion.

    > is that reflection probes in deferred do not support all the same features as in forward mode
    This is incorrect. reflection probes behave the same either in forward or deferred. Otherwise it is a bug :), and we will fix it.

    >forcing a roof mesh to use the default sky reflection,
    Are you using light layering for this ? Is light layering enabled on HDRP asset and in FrameSettings ?