Flipped water / land

This commit is contained in:
Sjoerd van de Goor 2023-02-15 13:00:13 +01:00
parent c15d4a349f
commit d6f816fe2f

View File

@ -54,7 +54,7 @@ public class IrisRenderer {
int deltaHeight = renderer.getMaxHeight() - renderer.getMinHeight();
colorFunction = (x, z) -> {
double h = renderer.getComplex().getHeightStream().get(x, z);
return new Color((int) (h * 255d / deltaHeight), 128, fluidHeight > h ? 0 : 255).getRGB();
return new Color((int) (h * 255d / deltaHeight), 128, h > fluidHeight ? 0 : 255).getRGB();
};
}
}