Ejemplo n.º 1
0
 public static void Draw( VoxelEngine.Primitives.GeometricPrimitive primitive )
 {
     primitive.Update();
     if( primitive is VoxelChunk )
     {
         batch.Draw( PrimitiveType.TriangleList, primitive.VerticeArray );
     }
     else
     {
         batch.DrawIndexed( PrimitiveType.TriangleList, primitive.IndiceArray, primitive.VerticeArray );
     }
 }
Ejemplo n.º 2
0
 void OnEnable()
 {
     _target = (VoxelEngine)target;
     string[] path = EditorApplication.currentScene.Split ('/');
     path [path.Length - 1] = "VoxelEngine.config";
     filePath = string.Join ("/", path);
 }