File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
assets/minecraft/shaders/core/render Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ void main() {
5050 vec2 size = textureSize(Sampler0, 0 );
5151 int n = int (2 * size.y/ size.x);
5252 // if theres more than 1 custom armor
53- if (n > 1 ) {
53+ if (n > 1 && size.x < 256 ) {
5454 // divide uv by number of armors, it is now on the first armor
5555 uv.y /= n;
5656 // if color index is within number of armors
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ void main() {
2020 // we assume if y >= 2x it is an armor and divide uv
2121 // cannot pass tint color here so it's the only option
2222 vec2 size = textureSize(Sampler0, 0 );
23- if (size.y >= 2 * size.x) {
23+ if (size.y >= 2 * size.x && size.x < 256 ) {
2424 uv.y /= 2 .*size.y/ size.x;
2525 }
2626}
You can’t perform that action at this time.
0 commit comments