- Home /
RenderTexture doesn't get cleared and camera just adds to it
I applied a render texture to one of my cameras to render on top of the other. The problem is that it looks like it doesn't clear the texture before the camera adds the new render to it. As a result I get some weird ink-flow-like effect witch is not what I'm after.
The first image is what I should get, it is just an editor screenshot prior to runtime. The second image though is during runtime when I moved the camera around a bit. It added up to it, but ultimately didn't clear the texture beforehand. How to set this up right?
Answer by agiro · Jul 17, 2017 at 06:54 AM
Change your blur cam's clear flags to solid color with an alpha of 0. it solves the issue.
Solved my problem after two days of banging my head on this exact issue, I even logged into my Unity Answers account just to thank you. Bless your heart, agiro.
Your answer
Follow this Question
Related Questions
How to call Camera.Render from Update 1 Answer
Best way to access RenderTexture immediately after camera render 0 Answers
Object shown on top of another, rendering priorities? 2 Answers
ClearFlags don't seem to work when I manually call Render() on my cameras. 0 Answers
RenderTexture flickering while multiple RenderTexture rendering 1 Answer