Rename MULTI_LOD to VOXEL
This commit is contained in:
@@ -228,7 +228,7 @@ public class LodBufferBuilder
|
||||
|
||||
// determine how many LODs we can stack vertically
|
||||
int maxVerticalData = 1;
|
||||
if (LodConfig.CLIENT.worldGenerator.lodQualityMode.get() == VerticalQuality.MULTI_LOD)
|
||||
if (LodConfig.CLIENT.worldGenerator.lodQualityMode.get() == VerticalQuality.VOXEL)
|
||||
maxVerticalData = 256;
|
||||
|
||||
// create adjData's arrays
|
||||
|
||||
@@ -246,7 +246,7 @@ public class LodBuilder
|
||||
false);
|
||||
break;
|
||||
|
||||
case MULTI_LOD:
|
||||
case VOXEL:
|
||||
long[] dataToMergeVertical = createVerticalDataToMerge(detail, chunk, config, startX, startZ, endX, endZ);
|
||||
data = DataPointUtil.mergeMultiData(dataToMergeVertical, DataPointUtil.worldHeight, DetailDistanceUtil.getMaxVerticalData(detailLevel));
|
||||
|
||||
|
||||
@@ -226,8 +226,9 @@ public class LodConfig
|
||||
lodQualityMode = builder
|
||||
.comment("\n\n"
|
||||
+ " Use 3d lods or 2d lods? \n"
|
||||
+ " " + VerticalQuality.HEIGHTMAP + ": LODs are solid from the lowest world point to the highest. Not good for floating islands or caves. Faster \n"
|
||||
+ " " + VerticalQuality.MULTI_LOD + ": LODs have gaps between vertical blocks. Good for floating islands and caves. Slower \n")
|
||||
+ " " + VerticalQuality.HEIGHTMAP + ": LODs are solid from the lowest point to the highest. Creates pillars for floating islands. Faster \n"
|
||||
+ " " + VerticalQuality.VOXEL + ": LODs have gaps between vertical blocks. Good for floating islands and caves. Slower \n"
|
||||
+ " " + "(Yes we know voxels are generally cubes, but voxel sounds better than rectangular_prism) \n")
|
||||
.defineEnum("lodQualityMode", VerticalQuality.HEIGHTMAP);
|
||||
|
||||
generationResolution = builder
|
||||
|
||||
@@ -22,7 +22,7 @@ package com.seibel.lod.enums;
|
||||
* multi_lod <br>
|
||||
*
|
||||
* @author Leonardo Amato
|
||||
* @version 7-03-2021
|
||||
* @version 9-27-2021
|
||||
*/
|
||||
public enum VerticalQuality
|
||||
{
|
||||
@@ -30,5 +30,5 @@ public enum VerticalQuality
|
||||
HEIGHTMAP,
|
||||
|
||||
/** Lods expand in three dimensions */
|
||||
MULTI_LOD;
|
||||
VOXEL;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ public class LodDimensionFileHandler
|
||||
case HEIGHTMAP:
|
||||
region.addLevel(new SingleLevelContainer(data));
|
||||
break;
|
||||
case MULTI_LOD:
|
||||
case VOXEL:
|
||||
region.addLevel(new VerticalLevelContainer(data));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class LodRegion
|
||||
case HEIGHTMAP:
|
||||
dataContainer[lod] = new SingleLevelContainer(lod);
|
||||
break;
|
||||
case MULTI_LOD:
|
||||
case VOXEL:
|
||||
dataContainer[lod] = new VerticalLevelContainer(lod);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user