Minor refactoring/renaming

This commit is contained in:
James Seibel
2024-07-11 16:40:32 -05:00
parent 116df0d999
commit c178afa4b9
4 changed files with 11 additions and 4 deletions
@@ -27,6 +27,8 @@ import com.seibel.distanthorizons.api.objects.render.DhApiRenderableBox;
import com.seibel.distanthorizons.api.objects.render.DhApiRenderableBoxGroupShading;
/**
* @see IDhApiShaderProgram
*
* @author James Seibel
* @version 2024-7-11
* @since API 3.0.0
@@ -24,6 +24,8 @@ import com.seibel.distanthorizons.api.methods.events.sharedParameterObjects.DhAp
import com.seibel.distanthorizons.api.objects.math.DhApiVec3f;
/**
* @see IDhApiGenericObjectShaderProgram
*
* @author James Seibel
* @version 2024-1-24
* @since API 2.0.0
@@ -35,7 +35,10 @@ import com.seibel.distanthorizons.core.util.RenderUtil;
import com.seibel.distanthorizons.core.util.math.Mat4f;
import com.seibel.distanthorizons.core.util.math.Vec3f;
public class LodRenderProgram extends ShaderProgram implements IDhApiShaderProgram
/**
* Handles rendering the normal LOD terrain.
*/
public class DhTerrainShaderProgram extends ShaderProgram implements IDhApiShaderProgram
{
public static final String VERTEX_SHADER_PATH = "shaders/standard.vert";
public static final String VERTEX_CURVE_SHADER_PATH = "shaders/curve.vert";
@@ -73,7 +76,7 @@ public class LodRenderProgram extends ShaderProgram implements IDhApiShaderProgr
//=============//
// This will bind AbstractVertexAttribute
public LodRenderProgram()
public DhTerrainShaderProgram()
{
super(() -> Shader.loadFile(Config.Client.Advanced.Graphics.AdvancedGraphics.earthCurveRatio.get() != 0 ? VERTEX_CURVE_SHADER_PATH : VERTEX_SHADER_PATH,
false, new StringBuilder()).toString(),
@@ -645,7 +645,7 @@ public class LodRenderer
this.fogConfig = newFogConfig;
this.lodRenderProgram.free();
this.lodRenderProgram = new LodRenderProgram();
this.lodRenderProgram = new DhTerrainShaderProgram();
FogShader.INSTANCE.free();
FogShader.INSTANCE = new FogShader(newFogConfig);
@@ -685,7 +685,7 @@ public class LodRenderer
EVENT_LOGGER.info("Setting up renderer");
this.isSetupComplete = true;
this.lodRenderProgram = new LodRenderProgram();
this.lodRenderProgram = new DhTerrainShaderProgram();
if (ENABLE_IBO)
{
this.quadIBO = new QuadElementBuffer();