public QbMatrixSide(Side side) { this.side = side; vBuffer = new VoxelBuffer(); buffer = new float[16]; switch (side) { case Side.Left: lightscale = .9f; normal = new Vector3(1, 0, 0); break; case Side.Right: lightscale = .9f; normal = new Vector3(-1, 0, 0); break; case Side.Top: lightscale = 1f; normal = new Vector3(0, 1, 0); break; case Side.Bottom: lightscale = 1f; normal = new Vector3(0, -1, 0); break; case Side.Front: lightscale = .8f; normal = new Vector3(0, 0, 1); break; case Side.Back: lightscale = .8f; normal = new Vector3(0, 0, -1); break; } }