Skip to content

Commit

Permalink
my remapping mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Nov 14, 2023
1 parent bf7a0e0 commit 4dcaf54
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@
public abstract class MixinBufferBuilder_IntrinsicSeparateAo extends DefaultedVertexConsumer {
@Shadow
private boolean fastFormat;
private float[] brightnessTable;

@Override
public void putBulkData(PoseStack.Pose matrixEntry, BakedQuad quad, float[] brightnesses, float red, float green,
float blue, int[] lights, int overlay, boolean useQuadColorData) {
if (!this.fastFormat) {
if (BlockRenderingSettings.INSTANCE.shouldUseSeparateAo()) {
brightnessTable = new float[brightnessTable.length];
Arrays.fill(brightnessTable, 1.0f);
brightnesses = new float[brightnesses.length];
Arrays.fill(brightnesses, 1.0f);
}

super.putBulkData(matrixEntry, quad, brightnessTable, red, green, blue, lights, overlay, useQuadColorData);
super.putBulkData(matrixEntry, quad, brightnesses, red, green, blue, lights, overlay, useQuadColorData);

return;
}
Expand Down Expand Up @@ -64,7 +63,7 @@ public void putBulkData(PoseStack.Pose matrixEntry, BakedQuad quad, float[] brig
float fG;
float fB;

float brightness = brightnessTable[i];
float brightness = brightnesses[i];
float alpha = 1.0F;

if (BlockRenderingSettings.INSTANCE.shouldUseSeparateAo()) {
Expand Down

0 comments on commit 4dcaf54

Please sign in to comment.