From 00838060de5ac52caa930d349e13f6f529f0860a Mon Sep 17 00:00:00 2001 From: Peregrine05 <92183530+Peregrine05@users.noreply.github.com> Date: Mon, 25 Sep 2023 00:27:45 +0200 Subject: [PATCH] Use procedural water as default --- chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 79a1cb5814..32b6b7340a 100644 --- a/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java +++ b/chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java @@ -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); @@ -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);