Camera preview and output is modified by scene view
The title might not be very explicit, so I'll try to better explain what's happening.
Basicly I have a very basic scene in which I created a second camera (I'm trying to set up a shader system with a camera that solely picks up a certain layer). My second camera is set as orthographic, and I associate a Render Texture to it. I excluded the layers that did not interest me.
The thing is, I noticed already that when moving around in my scene view (solely in unity), the preview of my second camera was changing. I didn't think much about it until I noticed that half of the output Render Texture of my second camera is showing the scene view? Like the top half of the Render Texture is half of what I'm supposed to get (the layer i'm looking for) and the bottom half is actually my scene view (which changes when I look around in my scene).
I'm quite new to unity and I haven't found what's causing this bug in two days. Any help would be greatly appreciated :)
Your answer
Follow this Question
Related Questions
(HDRP) Camera.Render() renders black, but only if Scene View is not visible 0 Answers
Apply post processing/tonemapping to a render texture. 0 Answers
camera viewport from rect to triangle 0 Answers
How to sync RenderTextures so that they all render once per frame 0 Answers
Non-perpendicular near clip plane 0 Answers