More v6 grid

This commit is contained in:
Wuzzy 2023-10-27 18:13:10 +02:00
parent 509c97a322
commit 1e866e82f4

View File

@ -6,7 +6,7 @@ const MAX_Y_DEFAULT = 31000
// Draw a grid line every GRID_STEP units // Draw a grid line every GRID_STEP units
const GRID_STEP = 10 const GRID_STEP = 10
const GRID_STEP_V6 = 0.2 const GRID_STEP_V6 = 0.1
// Size of the resizing corner // Size of the resizing corner
const RESIZE_CORNER = 14; const RESIZE_CORNER = 14;
@ -232,12 +232,11 @@ function updateAreaVarsFor(noiseType) {
if (min_value > max_value) { if (min_value > max_value) {
[min_value, max_value] = [max_value, min_value] [min_value, max_value] = [max_value, min_value]
} }
if (biomeMode === "v6") { // v6 humidity is forcefully clamped at 0 and 1
if (noiseType == "humidity") { if (biomeMode === "v6" && noiseType == "humidity") {
min_value = Math.max(0.0, min_value); min_value = Math.max(0.0, min_value);
max_value = Math.min(1.0, max_value); max_value = Math.min(1.0, max_value);
} }
}
// Update globals // Update globals
let limit_min = min_value; let limit_min = min_value;