more consistent skylight-blocklight order

This commit is contained in:
cola98765
2021-12-09 11:59:37 +01:00
parent e3f9c974f8
commit d5ed9a22fa
2 changed files with 2 additions and 2 deletions
@@ -43,7 +43,7 @@ public abstract class AbstractLodTemplate
/** add the given position and color to the buffer */
protected void addPosAndColor(LodBufferBuilder buffer,
float x, float y, float z,
int color, byte blockLightValue, byte skyLightValue)
int color, byte skyLightValue, byte blockLightValue)
{
// TODO re-add transparency by replacing the color 255 with "ColorUtil.getAlpha(color)"
buffer.position(x, y, z)
@@ -128,7 +128,7 @@ public class CubicLodTemplate extends AbstractLodTemplate
vertexOptimizer.getX(lodDirection, vertexIndex),
vertexOptimizer.getY(lodDirection, vertexIndex, verticalFaceIndex) + DataPointUtil.VERTICAL_OFFSET,
vertexOptimizer.getZ(lodDirection, vertexIndex),
color, blockLight, skyLight);
color, skyLight, blockLight );
}
verticalFaceIndex++;
}