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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Making 2D & Forward Renderers work at the same time

Discussion in 'Universal Render Pipeline' started by Kromah, Jul 4, 2020.

  1. Kromah

    Kromah

    Joined:
    Jan 20, 2013
    Posts:
    10
    Hello,

    I've recently converted my game to use the 2D renderer to get all the awesome 2D light features that come with it. However I need a portion of the scene to be in 3D, with light and shadow, and to render something in a render texture that will then be used in the 2D scene.

    How can I achieve this in an efficient way? It looks like I could have the two renderers in the pipeline and switch from one to the other on each frame, but that sounds like a very costly solution while there might be another one I'm not aware of.

    What do you think?

    Many thanks,
    Kromah
     
  2. Kromah

    Kromah

    Joined:
    Jan 20, 2013
    Posts:
    10
    Well I've got my question answered while watching the last Unity conference. Turns out you can assign a specific renderer to a camera, output to a render texture, a use that in my scene rendered by a camera using the default renderer. Nice!