FreshRSS

Normální zobrazení

Jsou dostupné nové články, klikněte pro obnovení stránky.
PředevčíremHlavní kanál
  • ✇Recent Questions - Game Development Stack Exchange
  • Combine 2D and 3D lighting in UnityAskhento
    I am using URP and would like to have 2D and 3D objects in the scene affected by lights. This is not supported by Unity, however the docs said that one can use "Camera Stacking" for this exact case. 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. It does not work. I added two cameras first - base, second
     

Combine 2D and 3D lighting in Unity

I am using URP and would like to have 2D and 3D objects in the scene affected by lights.

This is not supported by Unity, however the docs said that one can use "Camera Stacking" for this exact case.

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.

It does not work. I added two cameras first - base, second - overlay. Both with 3d renderer. Then added overlay camera to stack in base camera, then switched it's renderer to 2d renderer. Here is the message i get:

Only cameras with compatible renderer types can be stacked. The camera: Camera_1 are using the renderer Renderer2D, but the base camera: Camera are using UniversalRenderer. Will skip rendering

One option I have is to use 3D lights only.

❌
❌