Skip to content

Commit 7262767

Browse files
committed
dont target trims oops
1 parent 7bc571f commit 7262767

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

assets/minecraft/shaders/core/render/armor.vsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

assets/minecraft/shaders/core/render/glowing.vsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

lessfancypants.zip

8.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)