How to hide light from second camera
Hi there,
look at this scene. There is the problem that the main camera does not show the object (thats correct), but the light that object emits is still visible. I don't get out, how to hide the light as well.
I thought on lightmaps - may be it is baked lighting. But I couldn't figured out, how to remove that certain light an surfaces.
Scene:
I have a main camera: its settings
I think, I do it right, to uncheck the layers to prevent from being rendered in main camera ... But why is the light still rendered, even if the GameObject and the Light are on the excluded / unchecked layer mask?
For so far, I disabled and cleared the baked light map to ensure, it is no light rendered on the texture in the red circle.
I try to show up lights only in the render texture. later I want apply post processing effects as well to that render texture display. don't know how to do that only for that small camera view ...
Does anyone has an idea, why the light is rendered on that surface?
Thank you, Bjoern
Okay, I have a solution for now, but I need to control the light layer only for camera 2 (small view) Here's my current solution for HDRP:
I enabled the Light Layers Feature in unity 2021 in Project Settings HDRP and set the light to another light layer
Any suggestions to this.
Your answer
Follow this Question
Related Questions
ScreenToWorldPoint() not working properly using a RenderTexture 1 Answer
(HDRP) Camera.Render() renders black, but only if Scene View is not visible 0 Answers
Render Texture from Cameras targetTexture produces seams. 1 Answer
Disabling a specific light for only a specific camera in Universal Render Pipeline (URP) 0 Answers