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

Feedback Camera stacking for URP

Discussion in 'Universal Render Pipeline' started by MetaDOS, Aug 29, 2019.

  1. pHghost

    pHghost

    Joined:
    Jan 7, 2018
    Posts:
    61
    Not anymore! :cool:

    Would the shader approach be even more performant than using render objects, or is it pretty much the same?
     
  2. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    522
    I am not sure what you are referring to with "render objects", but it will be far faster than multiple cameras.
     
  3. pHghost

    pHghost

    Joined:
    Jan 7, 2018
    Posts:
    61
    I tried your method and it doesn't work, sadly, so I'll be sticking to Render Objects.

    With the shader queue changes, geometry clipping is still present.
     
  4. ashrafmajdee

    ashrafmajdee

    Joined:
    Apr 9, 2017
    Posts:
    1
    Hi, is it possible to stack a forward renderer camera as overlay to a 2d renderer base camera?
    When I try, I get the follow warning message in console and the game view is gray;


    CommandBuffer: temporary render texture _CameraColorAttachmentA not found while executing (SetRenderTarget color buffer)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

    CommandBuffer: temporary render texture _CameraColorAttachmentA not found while executing (SetGlobalTexture)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

    CommandBuffer: temporary render texture _CameraColorAttachmentA not found while executing (Blit source)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
     

    Attached Files:

    • 1.png
      1.png
      File size:
      144.5 KB
      Views:
      265
    Last edited: Nov 28, 2021
  5. NotEvenTrying

    NotEvenTrying

    Joined:
    May 17, 2017
    Posts:
    43
    ^ Bump, same issue as this person, and your Unity official docs also recommend this as the way to use 2d lights and 3d meshes in the same scene, so this is very disappointing that it is broken without any explanation/news/documentation from Unity 2021 onwards, when it works in prior versions.

    While interoperability between the respective Lights and Renderers may be developed in the future, currently a combination of 2D and 3D Lights and 2D and 3D Renderers in a single Scene can be achieved by using the camera stacking technique.
    ( from https://docs.unity3d.com/Packages/c...es.universal@12.1/manual/Lights-2D-intro.html )​
     
    Last edited: Jan 8, 2022
  6. owen_proto

    owen_proto

    Joined:
    Mar 18, 2018
    Posts:
    118
    @phil_lira
    can we get an update on shadow support for overlay cameras? it's not in the latest LTS that i can tell and it doesn't appear to be on the rendering & vfx roadmap.