Combined 3D and 2D lighting
Is it possible to use both, 2D and 3D lighting in URP scene? I don't need both systems to interact with each other, in my scenario there's 3D background (stars that would generate light and shine it onto nearby planets, 3D models for everything) and 2D foreground (sprite based player/enemies that would benefit from 2D lighting effects). I just need both systems to cooexist and work separately.
Answer by jimmiewalker653 · Oct 10, 2020 at 11:08 AM
@Shrimpey You'll need 2 cameras for this and you'll need to get the Light Weight Render Pipeline. Once you've setup your Render pipeline, you can add both renders to the pipeline you've created. Next, you'll need two cameras. Camera "A" will render all of your sprites and Camera "B" will render your 3D assets. Camera "A" will need to be an overlay camera and Camera "B" will need to be your base camera. Once you've setup everything up, simply hit the plus button on the camera in the section for "Stack", then add your overlay camera to it. You should now have both 3D and 2D lights interacting with 3D objects and Sprites.
Your answer
Follow this Question
Related Questions
Why do i still see the light shine on my object? 0 Answers
Why is my point light breaking my sprite? 0 Answers
Freeform light path inaccessible by script 0 Answers
Why not working light in Unity 2021.2.7f1 in 2D project? 0 Answers
9 sliced on 3d mesh 0 Answers