Browse Source

Depth less one

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
d7044c1663
  1. 3
      src/engine/InterestManagement/HeightMap.java

3
src/engine/InterestManagement/HeightMap.java

@ -331,13 +331,12 @@ public class HeightMap { @@ -331,13 +331,12 @@ public class HeightMap {
byte[][] colorData = new byte[heightmapImage.getWidth()][heightmapImage.getHeight()];
for (int y = 0; y < heightmapImage.getHeight(); y++) {
for (int y = 0; y < heightmapImage.getHeight(); y++)
for (int x = 0; x < heightmapImage.getWidth(); x++) {
Color color = new Color(heightmapImage.getRGB(x, y));
colorData[x][y] = (byte) color.getRed();
}
}
// Insert color data into lookup table

Loading…
Cancel
Save