Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

HDR: in a material stage too, a sprite that shines all over has no threshold

Senjince465c5708c9
diff --git a/crates/horizon-client-render/src/gfx/native_material.rs b/crates/horizon-client-render/src/gfx/native_material.rs
index b5a6406e1..3506154f1 100644
--- a/crates/horizon-client-render/src/gfx/native_material.rs
+++ b/crates/horizon-client-render/src/gfx/native_material.rs
@@ -168,7 +168,7 @@ fn horizon_material_mark(in: HorizonMaterialOut, texel: vec4<f32>) -> f32 {
let t = textureLoad(horizon_terrain_emission_thresholds,
vec2(i32(l % horizon_terrain_SPRITE_SPLIT), i32(l / horizon_terrain_SPRITE_SPLIT)), 0);
let y = horizon_terrain_brightness(texel.rgb);
- if y >= select(t.r, t.g, whole) {
+ if whole || y >= t.r {
return horizon_terrain_hdr_mark(tier, y);
}
}