From 022a288c97ea5e9d2183199d9df8f7e9d92c6853 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Wed, 1 Mar 2023 07:46:37 -0600 Subject: [PATCH] comment out height_map vertical option and minor refactoring/commenting --- .../com/seibel/lod/api/enums/config/EVerticalQuality.java | 2 +- .../com/seibel/lod/api/enums/rendering/ETransparency.java | 5 ----- .../com/seibel/lod/core/render/renderer/LodRenderer.java | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/api/src/main/java/com/seibel/lod/api/enums/config/EVerticalQuality.java b/api/src/main/java/com/seibel/lod/api/enums/config/EVerticalQuality.java index b28156fd7..4be9c462c 100644 --- a/api/src/main/java/com/seibel/lod/api/enums/config/EVerticalQuality.java +++ b/api/src/main/java/com/seibel/lod/api/enums/config/EVerticalQuality.java @@ -28,7 +28,7 @@ package com.seibel.lod.api.enums.config; */ public enum EVerticalQuality { - HEIGHT_MAP(new int[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }), +// HEIGHT_MAP(new int[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }), // commented out for now since it causes issues with transparency, may be re-added if the transparency issue is fixed LOW(new int[] { 4, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1 }), MEDIUM(new int[] { 6, 4, 3, 2, 2, 1, 1, 1, 1, 1, 1 }), HIGH(new int[] { 8, 6, 4, 2, 2, 2, 2, 1, 1, 1, 1 }), diff --git a/api/src/main/java/com/seibel/lod/api/enums/rendering/ETransparency.java b/api/src/main/java/com/seibel/lod/api/enums/rendering/ETransparency.java index 942f8c10a..3096cb144 100644 --- a/api/src/main/java/com/seibel/lod/api/enums/rendering/ETransparency.java +++ b/api/src/main/java/com/seibel/lod/api/enums/rendering/ETransparency.java @@ -40,13 +40,8 @@ public enum ETransparency // when removing items up the API major version - /** */ DISABLED(false, false), - - /** */ FAKE(true, true), - - /** */ COMPLETE(true, false); public final boolean tranparencyEnabled; diff --git a/core/src/main/java/com/seibel/lod/core/render/renderer/LodRenderer.java b/core/src/main/java/com/seibel/lod/core/render/renderer/LodRenderer.java index 76876bbb4..38f6354b7 100644 --- a/core/src/main/java/com/seibel/lod/core/render/renderer/LodRenderer.java +++ b/core/src/main/java/com/seibel/lod/core/render/renderer/LodRenderer.java @@ -70,6 +70,7 @@ public class LodRenderer public static final boolean ENABLE_IBO = true; + // TODO make these private, the LOD Builder can get these variables from the config itself public static boolean transparencyEnabled = true; public static boolean fakeOceanFloor = true;