Exemple #1
0
 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]))
        {
        }
Exemple #3
0
 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;
     }
 }
Exemple #5
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return this;
 }
Exemple #6
0
 public abstract VoxelHolder get(VoxelIndex i);
 public override VoxelHolder get(VoxelIndex i)
 {
     return(get(i.depth, i.x, i.y, i.z));
 }
 public abstract VoxelHolder get(VoxelIndex i);
 public override VoxelHolder get(VoxelIndex i)
 {
     return get(i.depth, i.x, i.y, i.z);
 }
Exemple #10
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return(this);
 }