I have two cameras setup, one of those is the main camera, I want to render a cube with the non main camera but scale the cube by some factor, and then render the cube with it’s default scale(before it was scaled with the other camera) through the main camera, both cameras are in the same position.
main camera settings, depth=0, clear depth only
non main camera settings depth=-1, clear skybox
the non main camera has a script attached to it with OnPreRender function which scales up the cube and a OnPostRender function wich returns the cube into it’s original scale.
however, the final result is a cube with a scale that was set in OnPostRender, I want the cube to have a new scale when a non main camera renders it and the original scale when a main camera renders it, but OnPostRender overrides all the settings from OnPreRender. Any idea what I am doing wrong?