From a62785ddd3d28bdc38bcfc094801d07865a954fc Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Sun, 27 Oct 2024 17:27:02 +0100 Subject: [PATCH] Store the biome blending radius in the scene file. (#1789) --- chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java b/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java index b3fd0f6c5..4afb6c46e 100644 --- a/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java +++ b/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java @@ -436,6 +436,7 @@ public synchronized void copyState(Scene other, boolean copyChunks) { waterColor.set(other.waterColor); fog.set(other.fog); biomeColors = other.biomeColors; + biomeBlendingRadius = other.biomeBlendingRadius; sunSamplingStrategy = other.sunSamplingStrategy; emittersEnabled = other.emittersEnabled; emitterIntensity = other.emitterIntensity; @@ -2573,6 +2574,7 @@ public void setUseCustomWaterColor(boolean value) { currentWaterShader.save(json); json.add("fog", fog.toJson()); json.add("biomeColorsEnabled", biomeColors); + json.add("biomeBlendingRadius", biomeBlendingRadius); json.add("transparentSky", transparentSky); json.add("waterWorldEnabled", waterPlaneEnabled); json.add("waterWorldHeight", waterPlaneHeight); @@ -2876,6 +2878,7 @@ else if(waterShader.equals("SIMPLEX")) JsonUtil.rgbFromJson(json.get("waterColor"), waterColor); } biomeColors = json.get("biomeColorsEnabled").boolValue(biomeColors); + biomeBlendingRadius = json.get("biomeBlendingRadius").intValue(biomeBlendingRadius); transparentSky = json.get("transparentSky").boolValue(transparentSky); JsonValue fogObj = json.get("fog"); if (fogObj.isObject()) {