public void DoCulling(Vector3 position)
 {
     if (SharedConfig.EnableCustomOC)
     {
         _scene.DoCulling(position);
     }
     else
     {
         _scene.UndoCulling();
     }
 }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     if (OC)
     {
         OCProfiler.Start();
         for (int i = 0; i < 1; i++)
         {
             scene.DoCulling(Camera.main.transform.position);
         }
         var time = OCProfiler.Stop();
         //Debug.Log(time);
     }
     else
     {
         scene.UndoCulling();
     }
 }