|
@@ -61,18 +61,16 @@ namespace bbiwarg
|
|
|
|
|
|
for (int x = 0; x < width; x++) {
|
|
for (int x = 0; x < width; x++) {
|
|
for (int y = 0; y < height; y++) {
|
|
for (int y = 0; y < height; y++) {
|
|
- ushort depth = depthImage.getDepth(x, y);
|
|
|
|
- int depth2 = depth;
|
|
|
|
- //depth = 60;
|
|
|
|
|
|
+ short depth = depthImage.getDepth(x, y);
|
|
|
|
|
|
int relX = x - width / 2;
|
|
int relX = x - width / 2;
|
|
int relY = y - height / 2;
|
|
int relY = y - height / 2;
|
|
|
|
|
|
GL.Begin(BeginMode.Polygon);
|
|
GL.Begin(BeginMode.Polygon);
|
|
- GL.Vertex3(relX-0.5f, relY+0.5f, -depth2);
|
|
|
|
- GL.Vertex3(relX+0.5f, relY+0.5f, -depth2);
|
|
|
|
- GL.Vertex3(relX+0.5f, relY-0.5f, -depth2);
|
|
|
|
- GL.Vertex3(relX-0.5f, relY-0.5f, -depth2);
|
|
|
|
|
|
+ GL.Vertex3(relX-0.5f, relY+0.5f, -depth);
|
|
|
|
+ GL.Vertex3(relX+0.5f, relY+0.5f, -depth);
|
|
|
|
+ GL.Vertex3(relX+0.5f, relY-0.5f, -depth);
|
|
|
|
+ GL.Vertex3(relX-0.5f, relY-0.5f, -depth);
|
|
GL.End();
|
|
GL.End();
|
|
}
|
|
}
|
|
}
|
|
}
|