예제 #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]))
 {
 }
예제 #2
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]))
        {
        }
예제 #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;
     }
 }
예제 #4
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.renderers) {
         control.renderers[index] = this;
     }
 }
예제 #5
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return this;
 }
예제 #6
0
 public abstract VoxelHolder get(VoxelIndex i);
예제 #7
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return(get(i.depth, i.x, i.y, i.z));
 }
예제 #8
0
 public abstract VoxelHolder get(VoxelIndex i);
예제 #9
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return get(i.depth, i.x, i.y, i.z);
 }
예제 #10
0
 public override VoxelHolder get(VoxelIndex i)
 {
     return(this);
 }