Skip to content

Commit

Permalink
Use procedural water as default (chunky-dev#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peregrine05 authored Sep 25, 2023
1 parent c9e0cf5 commit 8f65154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public class Scene implements JsonSerializable, Refreshable {
protected double waterPlaneHeight = World.SEA_LEVEL;
protected boolean waterPlaneOffsetEnabled = true;
protected boolean waterPlaneChunkClip = true;
protected WaterShader waterShading = new LegacyWaterShader();
protected WaterShader waterShading = new SimplexWaterShader();

public final Fog fog = new Fog(this);

Expand Down Expand Up @@ -2940,14 +2940,14 @@ public synchronized void importFromJson(JsonObject json) {
waterColor.y = colorObj.get("green").doubleValue(waterColor.y);
waterColor.z = colorObj.get("blue").doubleValue(waterColor.z);
}
String waterShader = json.get("waterShader").stringValue("LEGACY");
String waterShader = json.get("waterShader").stringValue("SIMPLEX");
if(waterShader.equals("LEGACY"))
waterShading = new LegacyWaterShader();
else if(waterShader.equals("SIMPLEX"))
waterShading = new SimplexWaterShader();
else {
Log.infof("Unknown water shader %s, using LEGACY", waterShader);
waterShading = new LegacyWaterShader();
Log.infof("Unknown water shader %s, using SIMPLEX", waterShader);
waterShading = new SimplexWaterShader();
}
waterShading.load(json);
biomeColors = json.get("biomeColorsEnabled").boolValue(biomeColors);
Expand Down

0 comments on commit 8f65154

Please sign in to comment.