- Home /
One RenderTexture to multiple cameras and OnPostRender problem
I have 3 cameras, Background, Main objects, transparent effects. All 3 have same rendertexture. Im copying Background rendertexture after rendering to other rendertexture so i can apply it as postprocessing to Main objects or not, if quality is too low. Problem is that without rendertextures copy works as i think it should, camera finishes rendering and its result is copied. With rendertexture im getting final image after all 3 cameras so its strange because in this case OnPostRender means it is called after all cameras finished rendering. OnRenderImage still works fine and copies only Background content, but i do not want to use it as it uses extra blit step(possibly that always happen even, if i do not use this function, so please answer to this too, if anybody knows). So, is this expected behavior or some kind of bug?