mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-20 12:29:40 +00:00
Properly prevent block face culling when TS is active (#796)
This commit is contained in:
1 parent
df662188f4
commit
debfcdfda0
2 files changed
+6
No files matched your search
+2
@@ -142,6 +142,8 @@ public class ChunkBuildBuffers implements ChunkBuildBuffersExt {
|
||||
|
||||
if (sortTranslucent && pass.isTranslucent()) {
|
||||
ChunkBufferSorter.sortStandardFormat(vertexType, buffer, bufferLen, x, y, z);
|
||||
meshData.clearSlices();
|
||||
meshData.setModelSlice(ModelQuadFacing.UNASSIGNED, new BufferSlice(0, bufferLen));
|
||||
}
|
||||
|
||||
meshData.setVertexData(new VertexData(buffer, this.vertexType.getCustomVertexFormat()));
|
||||
|
||||
@@ -17,6 +17,10 @@ public class ChunkMeshData {
|
||||
this.vertexData = vertexData;
|
||||
}
|
||||
|
||||
public void clearSlices() {
|
||||
this.parts.clear();
|
||||
}
|
||||
|
||||
public void setModelSlice(ModelQuadFacing facing, BufferSlice slice) {
|
||||
this.parts.put(facing, slice);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user