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

Deferred rendering causing all objects to become invisible

Discussion in 'Editor & General Support' started by tawdry, Nov 1, 2018.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Hello
    If I change my camera to deferred rendering all my scene objects become invisible I can see them in forward and in legacy deferred but standard deferred just poof they vanish and this isnt just in play mode soon as I enable deferred on the camera the stuff vanishes in the scene.When I run any scene in the project in deferred mode all i get is a black screen.

    If i start a fresh project then deferred rendering works so any clue why my main project would behave like this and short of a total re import anyone know what I can do to get it running properly again?
     
  2. Haxel0rd

    Haxel0rd

    Joined:
    May 20, 2021
    Posts:
    49
    Make sure when when switching to "Deferred" in Render Pipeline settings,
    that you also switch cameras Rendering Pass to "Deferred" as well.

    Then, if objects are still invisible, that will most likely relate to your shaders.
    Find the affected Shader(s), open it, search for:

    Code (CSharp):
    1. "LightMode"="UniversalForward"
    and change that to:

    Code (CSharp):
    1. "LightMode"="UniversalForwardOnly"
    ...after saving, your objects should appear again. Thats for shaders that do not
    support "Deferred" Rendering, it will then still use Forward Rendering in an extra
    round. If your shader support Deferred Rendering, then you can set LightMode
    to "UniversalGBuffer", which will then use Deferred as Render pass.