forked from MagicBane/Server
Depth less one
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user