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; }