I made some error with the commits

This commit is contained in:
morippi
2022-11-03 17:51:21 +01:00
parent f1ed837610
commit 1caf6b03b4
2 changed files with 8 additions and 1 deletions
@@ -42,6 +42,13 @@ public class ColumnBox
byte skyLightBot = ColumnFormat.doesDataPointExist(botData) ? ColumnFormat.getLightSky(botData) : 0;
boolean isTransparent = ColorUtil.getAlpha(color)<255 && LodRenderer.transparencyEnabled;
if (builder.skipQuadsWithZeroSkylight
&& builder.skyLightCullingBelow > maxY
&& (ColumnFormat.getDepth(topData) >= builder.skyLightCullingBelow
|| !ColumnFormat.doesDataPointExist(topData)))
{
maxY = builder.skyLightCullingBelow;
}
boolean isTopTransparent = ColumnFormat.getAlpha(topData)<255 && LodRenderer.transparencyEnabled;
boolean isBotTransparent = ColumnFormat.getAlpha(botData)<255 && LodRenderer.transparencyEnabled;
@@ -122,7 +122,7 @@ public class LodQuadBuilder
{
if (dir.ordinal() <= ELodDirection.DOWN.ordinal())
throw new IllegalArgumentException("addQuadAdj() is only for adj direction! Not UP or Down!");
if (skipQuadsWithZeroSkylight && skylight == 0 && y < skyLightCullingBelow)
if (skipQuadsWithZeroSkylight && skylight == 0 && y+widthNorthSouthOrUpDown < skyLightCullingBelow)
return;
BufferQuad quad = new BufferQuad(x, y, z, widthEastWest, widthNorthSouthOrUpDown, color, skylight, blocklight, dir);
ArrayList<BufferQuad> qs = (doTransparency && ColorUtil.getAlpha(color) < 255)