Skip to content

Commit

Permalink
Do not use normal vector shade if enhanced lighting is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Aug 13, 2024
1 parent 50e6376 commit 4ef46b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void calculate(ModelQuadView quad, BlockPos pos, QuadLightData out, Direc
Arrays.fill(out.br, this.lightCache.getLevel().getShade(lightFace, shade));
} else {
lightmap = getEmissiveLightmap(this.lightCache.get(pos));
Arrays.fill(out.br, PlatformBlockAccess.getInstance().getNormalVectorShade(quad, this.lightCache.getLevel(), shade));
Arrays.fill(out.br, enhanced ? PlatformBlockAccess.getInstance().getNormalVectorShade(quad, this.lightCache.getLevel(), shade) : this.lightCache.getLevel().getShade(lightFace, shade));
}
}

Expand Down

0 comments on commit 4ef46b7

Please sign in to comment.