I made some error with the commits
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user