public VoxelChunk(VoxelManager parent, Vector3 start, Vector3 end) : base(parent) { this.start = start; this.end = end; voxelData = new VoxelDataGenerator(this, start, end); meshHelper = new VoxelMeshGenerator(this, voxelData); Position = (end + start) / 2f; generateSurface(); wasUpdated = false; //generateDebugSurface(); //generateSurfaceMesh(); //scene.generateParticleSys(); surface.isVisible = false; }
public VoxelChunk(VoxelManager parent, Vector3 start ,Vector3 end) : base(parent) { this.start = start; this.end = end; voxelData = new VoxelDataGenerator(this, start, end); meshHelper = new VoxelMeshGenerator(this, voxelData); Position = (end + start) / 2f; generateSurface(); wasUpdated = false; //generateDebugSurface(); //generateSurfaceMesh(); //scene.generateParticleSys(); surface.isVisible = false; }