Depth less one

This commit is contained in:
2023-09-20 17:24:41 -04:00
parent 3497d275a8
commit d7044c1663
+1 -2
View File
@@ -331,13 +331,12 @@ public class HeightMap {
byte[][] colorData = new byte[heightmapImage.getWidth()][heightmapImage.getHeight()]; 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++) { for (int x = 0; x < heightmapImage.getWidth(); x++) {
Color color = new Color(heightmapImage.getRGB(x, y)); Color color = new Color(heightmapImage.getRGB(x, y));
colorData[x][y] = (byte) color.getRed(); colorData[x][y] = (byte) color.getRed();
} }
}
// Insert color data into lookup table // Insert color data into lookup table