Skip to content

Commit c906cd2

Browse files
committed
Store the biome blending radius in the scene file.
1 parent d91e484 commit c906cd2

File tree

1 file changed

+3
-0
lines changed
  • chunky/src/java/se/llbit/chunky/renderer/scene

1 file changed

+3
-0
lines changed

chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java

+3
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ public synchronized void copyState(Scene other, boolean copyChunks) {
436436
waterColor.set(other.waterColor);
437437
fog.set(other.fog);
438438
biomeColors = other.biomeColors;
439+
biomeBlendingRadius = other.biomeBlendingRadius;
439440
sunSamplingStrategy = other.sunSamplingStrategy;
440441
emittersEnabled = other.emittersEnabled;
441442
emitterIntensity = other.emitterIntensity;
@@ -2573,6 +2574,7 @@ public void setUseCustomWaterColor(boolean value) {
25732574
currentWaterShader.save(json);
25742575
json.add("fog", fog.toJson());
25752576
json.add("biomeColorsEnabled", biomeColors);
2577+
json.add("biomeBlendingRadius", biomeBlendingRadius);
25762578
json.add("transparentSky", transparentSky);
25772579
json.add("waterWorldEnabled", waterPlaneEnabled);
25782580
json.add("waterWorldHeight", waterPlaneHeight);
@@ -2876,6 +2878,7 @@ else if(waterShader.equals("SIMPLEX"))
28762878
JsonUtil.rgbFromJson(json.get("waterColor"), waterColor);
28772879
}
28782880
biomeColors = json.get("biomeColorsEnabled").boolValue(biomeColors);
2881+
biomeBlendingRadius = json.get("biomeBlendingRadius").intValue(biomeBlendingRadius);
28792882
transparentSky = json.get("transparentSky").boolValue(transparentSky);
28802883
JsonValue fogObj = json.get("fog");
28812884
if (fogObj.isObject()) {

0 commit comments

Comments
 (0)