more consistent skylight-blocklight order
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user