mirror of
https://github.com/FabricMC/fabric.git
synced 2024-12-01 03:47:18 -05:00
Check cullface after transform
This commit is contained in:
parent
aea78a258d
commit
88fd2ae928
1 changed files with 7 additions and 1 deletions
|
@ -92,7 +92,7 @@ public abstract class TerrainFallbackConsumer extends AbstractQuadRenderer imple
|
|||
List<BakedQuad> quads = model.getQuads(blockState, face, random.get());
|
||||
final int count = quads.size();
|
||||
|
||||
if (count != 0 && blockInfo.shouldDrawFace(face)) {
|
||||
if (count != 0) {
|
||||
for (int j = 0; j < count; j++) {
|
||||
BakedQuad q = quads.get(j);
|
||||
renderQuad(q, face, defaultMaterial);
|
||||
|
@ -131,6 +131,12 @@ public abstract class TerrainFallbackConsumer extends AbstractQuadRenderer imple
|
|||
return;
|
||||
}
|
||||
|
||||
cullFace = editorQuad.cullFace();
|
||||
|
||||
if (cullFace != null && !blockInfo.shouldDrawFace(cullFace)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!editorQuad.material().disableAo(0)) {
|
||||
// needs to happen before offsets are applied
|
||||
editorQuad.invalidateShape();
|
||||
|
|
Loading…
Reference in a new issue