Skip to content

Commit

Permalink
dont target trims oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Godlander committed Jul 1, 2023
1 parent 7bc571f commit 7262767
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/minecraft/shaders/core/render/armor.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void main() {
vec2 size = textureSize(Sampler0, 0);
int n = int(2*size.y/size.x);
//if theres more than 1 custom armor
if (n > 1) {
if (n > 1 && size.x < 256) {
//divide uv by number of armors, it is now on the first armor
uv.y /= n;
//if color index is within number of armors
Expand Down
2 changes: 1 addition & 1 deletion assets/minecraft/shaders/core/render/glowing.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main() {
//we assume if y >= 2x it is an armor and divide uv
//cannot pass tint color here so it's the only option
vec2 size = textureSize(Sampler0, 0);
if (size.y >= 2*size.x) {
if (size.y >= 2*size.x && size.x < 256) {
uv.y /= 2.*size.y/size.x;
}
}
Binary file added lessfancypants.zip
Binary file not shown.

0 comments on commit 7262767

Please sign in to comment.