Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Rust differential-testinggame-enginegamedevlinuxminecraftminecraft-javareimplementationrustvoxelvulkanwgpu
OptiFine CTM panes: cube UVs only when drawn; pin every arm in the test
some-du6eec627f27bb89
diff --git a/crates/horizon-client-render/src/connected.rs b/crates/horizon-client-render/src/connected.rsindex 894aaf1a3..ecb4f35ba 100644--- a/crates/horizon-client-render/src/connected.rs+++ b/crates/horizon-client-render/src/connected.rs@@ -1050,8 +1050,12 @@ mod tests {let (post, north, east) = ([0.5, 0.5], [0.5, 0.2], [0.8, 0.5]);assert!(ctm.stacked_pane_hides(0, 1, post));assert!(ctm.stacked_pane_hides(0, 1, north));- // The pane above has no east arm: the strip shows.+ // The pane above has no east arm: the strip shows; one with it hides it.assert!(!ctm.stacked_pane_hides(0, 1, east));+ assert!(ctm.stacked_pane_hides(1, 0, east));+ let (south, west) = ([0.5, 0.8], [0.2, 0.5]);+ assert!(!ctm.stacked_pane_hides(1, 0, south));+ assert!(!ctm.stacked_pane_hides(1, 0, west));assert!(ctm.stacked_pane_hides(1, 0, north));// Another block, or a pane without rules, hides nothing.assert!(!ctm.stacked_pane_hides(1, 2, post));diff --git a/crates/horizon-client-render/src/mesher.rs b/crates/horizon-client-render/src/mesher.rsindex af3d9a59c..988121492 100644--- a/crates/horizon-client-render/src/mesher.rs+++ b/crates/horizon-client-render/src/mesher.rs@@ -1403,9 +1403,16 @@ impl Mesher<'_> {};// Vanilla's pane models mirror some faces' textures; OptiFine's don't, so a tile's borders// land where the neighbours are: on a pane, tiles take the cube's own UVs.- let standard = q.positions.map(|p| standard_uv(q.facing, p));+ let standard = || q.positions.map(|p| standard_uv(q.facing, p));let tiled = !matches!(pick, Pick::Keep);- let corners = vertices(tint, if state.pane && tiled { standard } else { q.uv });+ let corners = vertices(+ tint,+ if state.pane && tiled {+ standard()+ } else {+ q.uv+ },+ );// Opaque leaves (forceOpaque) and leaves a leaf-culling mode proved internal draw in the// solid layer whatever their sprite.let solid_leaves = !self.cutout_leaves && state.leaves || interior_leaf;@@ -1474,7 +1481,7 @@ impl Mesher<'_> {translucent: overlay.translucent || face_translucent,opaque: false,};- let whole = vertices(tint, standard);+ let whole = vertices(tint, standard());for s in cuts.windows(2) {for t in cuts.windows(2) {let piece = [(s[0], t[0]), (s[1], t[0]), (s[1], t[1]), (s[0], t[1])]