rename LodRender to LodRenderer

This commit is contained in:
James Seibel
2021-06-19 20:45:30 -05:00
parent 92e651c779
commit e941b553e7
5 changed files with 16 additions and 16 deletions
@@ -48,7 +48,7 @@ import net.minecraft.util.math.vector.Vector3f;
* @author James Seibel
* @version 06-19-2021
*/
public class LodRender
public class LodRenderer
{
/** this is the light used when rendering the LODs,
* it should be something different than what is used by Minecraft */
@@ -112,7 +112,7 @@ public class LodRender
public LodRender(LodBufferBuilder newLodBufferBuilder)
public LodRenderer(LodBufferBuilder newLodBufferBuilder)
{
mc = Minecraft.getInstance();
gameRender = mc.gameRenderer;
@@ -69,7 +69,7 @@ public class RenderUtil
*/
public static int getMaxRadiusMultiplierWithAvaliableMemory(LodTemplate lodTemplate, LodDetail lodDetail)
{
int maxNumberOfLods = LodRender.MAX_ALOCATEABLE_DIRECT_MEMORY / lodTemplate.getBufferMemoryForSingleLod(lodDetail);
int maxNumberOfLods = LodRenderer.MAX_ALOCATEABLE_DIRECT_MEMORY / lodTemplate.getBufferMemoryForSingleLod(lodDetail);
int numbLodsWide = (int) Math.sqrt(maxNumberOfLods);
return numbLodsWide / (2 * mc.gameSettings.renderDistanceChunks);