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 emissive textures: test a variant blink frame's overlay in the atlas, fix the docs row
some-du6e514d4b012582
diff --git a/crates/horizon-client-render/src/hud.rs b/crates/horizon-client-render/src/hud.rsindex 6750718e8..cce6815ad 100644--- a/crates/horizon-client-render/src/hud.rs+++ b/crates/horizon-client-render/src/hud.rs@@ -2591,7 +2591,24 @@ mod tests {&[[200, 0, 0, 255]],None,);+ // A variant's blink frame, with its own overlay.+ write_strip(+ &random.join("zombie3_blink.png"),+ 64,+ 64,+ &[[0, 0, 200, 255]],+ None,+ );+ write_strip(+ &random.join("zombie3_blink_e.png"),+ 64,+ 64,+ &[[9, 9, 9, 255]],+ None,+ );let atlas = HudAtlas::build(&root).unwrap();+ let rect = atlas.sprites["minecraft:optifine/random/entity/zombie/zombie3_blink_e"];+ assert_eq!(texel_at(&atlas, rect, 0, 0), [9, 9, 9, 255]);let rect = atlas.sprites["minecraft:optifine/random/entity/zombie/zombie3_e"];assert_eq!(texel_at(&atlas, rect, 0, 0), [200, 0, 0, 255]);assert_eq!(diff --git a/docs/resource-packs.md b/docs/resource-packs.mdindex f7decac33..7f316e625 100644--- a/docs/resource-packs.md+++ b/docs/resource-packs.md@@ -40,7 +40,7 @@ harness named checks that loader against vanilla).| Item definitions and item models (all model types, display transforms, tints) | `items/`, `models/item/` | works | `test_item_model_parity` || Custom entity models (OptiFine/EMF): a `.jem` reshapes a mob's model layer, with its animations and texture; Entity Model Features' files win over OptiFine's | `optifine/cem/`, `emf/cem/` | partly | `mobs::cem` and `mobs::cem_anim` unit tests; no per-bone textures, no random models, no textures under `optifine/` (vanilla's own entity models are code in 26.3, which `test_entity_model_parity` checks) || Random entity textures (OptiFine/ETF): numbered variants and their rules (biome, height, name, profession, colour, baby, health, moon, time, weather, size, blocks), chosen per entity from its UUID and rechecked once a second | `optifine/random/`, `optifine/mob/`, `mcpatcher/mob/`, `etf/random/`, `textures/entity/` with a `.properties` | partly | `horizon-optifine` `random` and `random_textures` tests, `mobs::random_textures` tests; no `nbt.*` or ETF's extra conditions (teams, items...), no block entities |-| Emissive textures (OptiFine/ETF): `<texture>_e.png` (or the pack's `suffix.emissive`) drawn full bright over mobs, their layers and armour, armour stands, the elytra, the dragon, thrown tridents and block entities | `optifine/emissive.properties` | partly | `horizon-optifine` `emissive` tests, `mobs::render::emissive_tests`, `block_entity_render` tests; not over blocks, items, other projectiles, minecarts or end crystals |+| Emissive textures (OptiFine/ETF): `<texture>_e.png` (or the pack's `suffix.emissive`) drawn full bright over mobs, their layers and armour, armour stands, the elytra, the dragon, thrown tridents and block entities | `<texture>_e.png` beside its texture (also random variants' and blink frames'); the suffix from `optifine/emissive.properties`, `etf/emissive.properties` or `textures/emissive.properties` | partly | `horizon-optifine` `emissive` tests, `mobs::render::emissive_tests`, `block_entity_render` tests; not over blocks, items, armour trims, other projectiles, minecarts or end crystals || Blinking textures (ETF): `<texture>_blink.png` and `_blink2.png`, `blinkLength`/`blinkFrequency` | `textures/entity/`, random variants' folders | works | `horizon-optifine` `blink` tests, `mobs::render` blink test; sleeping villagers keep their eyes shut || Textures, any resolution (16x to 512x) | `textures/` | works | atlases stitched from the overlay; Faithful 32x, Default HD 128x and FPBR measured in [reuse-pack-overlays.md](reuse-pack-overlays.md) || Texture animation: frames, frame time, frame size | `*.png.mcmeta` `animation` | works | `test_sprite_animation_parity` |