Two outputs, one camera?

Hello, I’m having a hard time figuring this one out, mainly because I have no knowledge on cameras.

I’d like my camera to have an output on the screen (normal camera) as well as on a texture, this is important that I use only one camera for both outputs for optimization reasons: rendering the whole scene twice is not what I’d call best practice for iPhone :stuck_out_tongue_winking_eye:

From the inspector and as far as I know, there is no way to make the camera output on both a texture and the screen, I could double output on a texture, but the image quality is kind of sloppy…

This is the only way I can think of using one camera, there might be something more fancy on a more clever level. This renders the camera twice but you can restrict it to certain frames.

var renderTexture : RenderTexture; //Create a RenderTexture in Project view and assign through Inspector
var updateFrameEvery : int = 1; //Update every # frame
private var cam : Camera;

function Start () {
	cam = Camera.main;

function RenderToTexture () {
	var frameCount : int = 0;
	while (true) {
		if (Time.renderedFrameCount>frameCount+updateFrameEvery) { = renderTexture;
			cam.targetTexture = renderTexture;
			cam.Render(); = null;
			cam.targetTexture = null;
			frameCount = Time.renderedFrameCount;