public virtual RenderTexture CreateStereoScreen() {
float scale = GvrViewer.Instance.StereoScreenScale;
int width = Mathf.RoundToInt(Screen.width * scale);
int height = Mathf.RoundToInt(Screen.height * scale);
if (this.RequiresNativeDistortionCorrection()) {
width = (int)recommendedTextureSize[0];
height = (int)recommendedTextureSize[1];
}
//Debug.Log("Creating new default stereo screen texture "
// + width+ "x" + height + ".");
var rt = new RenderTexture(width, height, 24, RenderTextureFormat.Default);
rt.anisoLevel = 0;
rt.antiAliasing = Mathf.Max(QualitySettings.antiAliasing, 1);
return rt;
}