I need to render a camera into a sub section of a target texture (the project I’m working on has multiple panels like a comic book and render using dynamically sized view ports).
It used to be the cameras rect was relative to whatever it was rendering into, including target textures so this was easy. However in a recent version of unity this functionality was removed meaning now the camera rect is ignored when rendering to a target texture.
How come this was changed? And how can I get this working again?
I’m pretty sure one call to GL.Viewport before rendering with the camera would achieve this but alas the viewport seems to get overwritten inside camera.Render().
Anybody had any luck with this?
Thanks!