Skip to content

Instantly share code, notes, and snippets.

@Bradshaw
Last active January 3, 2016 03:39
Show Gist options
  • Save Bradshaw/8403182 to your computer and use it in GitHub Desktop.
Save Bradshaw/8403182 to your computer and use it in GitHub Desktop.
Trust me, put this on the cameras (CameraLeft and CameraRight) ;)
using UnityEngine;
using System.Collections;
public class FuckYouOculus : MonoBehaviour {
public int actuallySetFarClippingPlaneTo = 10000;
void Update () {
gameObject.GetComponent<Camera>().farClipPlane = actuallySetFarClippingPlaneTo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment