Esempio n. 1
0
        public void Start()
        {
            RaycastTexture = new Texture2D(Screen.width, Screen.height);
            material.SetTexture("_MainTex", RaycastTexture);

            root = GenerateOctree((float x, float y, float z) => UtilFuncs.Sphere(x, y, z, 0.8f), MaxLOD);
            Debug.Log("Generated Octree. ContainsSurface: " + root.ContainsSurface);
        }
Esempio n. 2
0
 public void Start()
 {
     root = GenerateQuadtree((float x, float y, float z) => UtilFuncs.Sphere(x, y, z, 0.8f), MaxLOD);
     Debug.Log("Generated Quadtree. ContainsSurface: " + root.ContainsSurface);
 }