Beispiel #1
0
        // Update is called once per frame
        void Update()
        {
            clipPlane.UpdateNearClipPlane();

            if (showDebug)
            {
                clipPlane.ShowDebugLines();
            }
        }
Beispiel #2
0
        public static GOClipPlane MainCameraFarClipPlane()
        {
            Camera c = Camera.main;

            GOClipPlane clipPlane = new GOClipPlane(c);

            clipPlane.UpdateNearClipPlane();

            return(clipPlane);
        }