public VoxelRenderer(VoxelIndex index, VoxelTree control) : this(index, control, new Vector3( index.x * control.sizes[index.depth], index.y *control.sizes[index.depth], index.z *control.sizes[index.depth])) { }
public VoxelRenderer(VoxelIndex index, VoxelTree control) : this(index, control, new Vector3( index.x * control.sizes[index.depth], index.y * control.sizes[index.depth], index.z * control.sizes[index.depth])) { }
public VoxelRenderer(VoxelIndex index, VoxelTree control, Vector3 localPosition) { this.index = index; this.position = localPosition; this.control = control; size = 0; ++rendCount; VERTS = new Vector3[0]; NORMS = new Vector3[0]; TRIS = new int[0]; lock (control) { control.renderers[index] = this; } }
public VoxelRenderer(VoxelIndex index, VoxelTree control, Vector3 localPosition) { this.index = index; this.position = localPosition; this.control = control; size = 0; ++rendCount; VERTS = new Vector3[0]; NORMS = new Vector3[0]; TRIS = new int[0]; lock(control.renderers) { control.renderers[index] = this; } }
public override VoxelHolder get(VoxelIndex i) { return this; }
public abstract VoxelHolder get(VoxelIndex i);
public override VoxelHolder get(VoxelIndex i) { return(get(i.depth, i.x, i.y, i.z)); }
public override VoxelHolder get(VoxelIndex i) { return get(i.depth, i.x, i.y, i.z); }
public override VoxelHolder get(VoxelIndex i) { return(this); }