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
Merge #6392 (main merged) into #6458
Ludovic Marie7482479b1904
diff --cc crates/horizon-client/src/game/item_draw.rsindex 7f4578a32,8476e7e4b..dddf4ab79--- a/crates/horizon-client/src/game/item_draw.rs+++ b/crates/horizon-client/src/game/item_draw.rs@@@ -341,24 -326,10 +341,28 @@@ impl Game<'_>&self.item_env(),rule,);+ if let Some(glint) = glint {+ // The pack's enchantment rules replace vanilla's glint unless one keeps it, so far+ // only in the GUI, where their own layers draw: held, dropped and framed items keep+ // vanilla's until theirs do. The pack's `useGlint=false` removes it everywhere.+ let gui = display == DisplayContext::Gui;+ let pack_keeps = renderer+ .cit+ .as_ref()+ .is_none_or(|c| c.rules.global.use_glint);+ if !glint.vanilla && (gui || !pack_keeps) {+ for layer in &mut state.layers {+ layer.foil = horizon_assets::item_model::FoilType::None;+ }+ }+ if gui && !glint.is_empty() {+ state.cit_glint = Some(glint);+ }+ }+ state.hdr_tier = self.luminance().hdr_tier(&stack.item);+ if state.hdr_tier > 0 && self.renderer.as_ref().is_some_and(|r| r.hdr_on()) {+ state.hdr_light = self.luminance().of(&stack.item);+ }state}/// `GuiGraphics.renderItem(player, level, stack, x, y, 0)`.diff --cc crates/horizon-client/src/item_render.rsindex 91e288e69,6f0513cca..5e5d1ee56--- a/crates/horizon-client/src/item_render.rs+++ b/crates/horizon-client/src/item_render.rs@@@ -202,8 -202,11 +202,13 @@@ pub struct ItemRenderStatepub layers: Vec<LayerRender>,pub oversized_in_gui: bool,pub animated: bool,+ /// The OptiFine CIT glint layers the stack draws in the GUI (`cit_glint`).+ pub cit_glint: Option<Arc<crate::cit_glint::StackGlint>>,+ /// HDR output's tier of an item that glows (`dynamic_light::Luminance::hdr_tier`).+ pub hdr_tier: u8,+ /// In HDR output, the block light of an item that glows: its block's, as a placed one has+ /// it, so a torch doesn't go dark in the shade while it shines. 0 for the rest.+ pub hdr_light: u8,}impl ItemRenderState {pub fn is_empty(&self) -> bool {@@@ -736,7 -768,8 +770,9 @@@ impl ItemRendererlayers,oversized_in_gui: resolved.oversized_in_gui,animated,+ cit_glint: None,+ hdr_tier: 0,+ hdr_light: 0,}}/// `GrassColor.get` over the loaded colormap.