Skip to content

Commit

Permalink
Store the biome blending radius in the scene file. (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik authored Oct 27, 2024
1 parent d91e484 commit a62785d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit a62785d

Please sign in to comment.