From b086832333ae55883738fa3e5f304b293d2e0254 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 20 Dec 2025 19:01:03 +1000 Subject: [PATCH] remove mip thing cause vanilla mipmaps have issues --- .../resources/assets/voxy/shaders/bakery/position_tex.fsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/voxy/shaders/bakery/position_tex.fsh b/src/main/resources/assets/voxy/shaders/bakery/position_tex.fsh index 01721362..0732465b 100644 --- a/src/main/resources/assets/voxy/shaders/bakery/position_tex.fsh +++ b/src/main/resources/assets/voxy/shaders/bakery/position_tex.fsh @@ -7,7 +7,12 @@ layout(location=0) out vec4 colour; layout(location=1) out uvec4 metaOut; void main() { - colour = texture(tex, texCoord, ((~metadata>>1)&1u)*-16.0f); + float mipbias = ((~metadata>>1)&1u)*-16.0f; + mipbias = -16.0f;//Always use the top level + // TODO FIXME, it should use the 16x16 mipmap, the issue is tho, the alpha cutoff is jsut wrong tho ;-; + // causing issues with resource packs that are bigger then 16x16 (e.g. faithful x64) + // this is probably to to the scaleAlphaToCoverage system + colour = texture(tex, texCoord, mipbias); if (colour.a < 0.001f && ((metadata&1u)!=0)) { discard; }