public virtual void initStereoCamera() { SetupCameras(); SetupShader(); SetStereoFormat(); s3dDepthInfo infoScript = null; infoScript = (s3dDepthInfo)GetComponent(typeof(s3dDepthInfo)); if (infoScript) { SetupScreenPlanes(); // only create screen planes if necessary } }
public virtual void Start() { mainCam = (Camera)gameObject.GetComponent(typeof(Camera)); // Main Stereo Camera Component camScript = (s3dCamera)gameObject.GetComponent(typeof(s3dCamera)); // Main Stereo Script infoScript = (s3dDepthInfo)gameObject.GetComponent(typeof(s3dDepthInfo)); // Main Stereo Script }