Minor refactoring/renaming
This commit is contained in:
+2
@@ -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
|
||||
|
||||
+2
@@ -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
|
||||
|
||||
+5
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user