Multiple planar stereo reflections

Hello Unity master minds!

I’m working on an Occulus project that needs multiple planar stereo reflections. I have the reflections working in the monoscopic setting and my solution is using reflected cameras that render to textures which are projected on the mirror surfaces. Mono is no probs.

To make the reflections stereoscopic I need to render both reflected cameras (of each camera pair) manually, in an OnPreRender() callback function of a script attached to my main camera. This way the OnPreRender() function runs twice, so that I can run .Render() for both left and right eye. This works but only for the last pair of cameras rendered.

The RenderReflections script below is attached to my main camera, once per reflection/camera pair.

Any ideas of how to make the stereo work for all reflected camera pairs, and not just the last?

using UnityEngine;
using System.Collections;

public class RenderReflections : MonoBehaviour {

    public GameObject reflectionCameraL;
    public GameObject reflectionCameraR;
    int eyeIndex = 0;

    void OnPreRender() {
        if (eyeIndex == 0) {
            // Render left camera
            reflectionCameraL.GetComponent<Camera>().Render();
        }
        else {
            // Render right camera
            reflectionCameraR.GetComponent<Camera>().Render();
        }
        eyeIndex = 1 - eyeIndex;
    }
}

I finally found a bug when reflecting the cameras. Multiple reflections are working now. This issue is solved!