Depth less one
This commit is contained in:
1 parent
3497d275a8
commit
d7044c1663
1 file changed
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user