• check_circle Armor
  • check_circle Misc
  • 25,894 views, 35 today
  • 8,619 downloads, 10 today
  • 227
  • 197
  • 40
archon_andromeda's Avatar archon_andromeda
Level 41 : Master Pixel Puncher
49
What is it?

Mojang is tweaking the enchantment glint, which got me thinking... what if we had a glint effect that both was obvious and didn't obscure what armor you're wearing? After three days of working on dodgy shader hacks, I present to you: Fancy Glint, a completely vanilla resource pack that makes the enchantment glint bright on the edges of your armor but politely stays away from the most detailed and interesting parts. Perfect for showing off your new trim! It even works with other glint-modifying resource packs!


How does it work?

Starting with 1.17, Minecraft's core shaders (instructions for how to draw the game) are able to be modified by resource packs. This means that I can replace the default one ("just lay the glint texture over the armor, stretch it, and move it around") with my own ("do that but also do some other stuff to make it brighter on the edges").

The glint geometry doesn’t have normals or anything, just worldspace positions and UV positions, neither of which are particularly useful. Instead, I used the gl_VertexID to generate “UV” positions that stretch across the whole faces. Since Minecraft always sends the vertices in a specific order, I can assign each one to specific corners (so if gl_VertexID % 4 == 0 , it’s (0, 0) , if gl_VertexID % 4 == 1 , it’s (0, 1) , etc.). And then by using a sin function I can get it to fade from the edges to the center, and somehow it works and is consistent.

Because this method is reliant on specific geometry, it doesn't work very well with items, unfortunately. This pack will likely remain armor-only.


Older Versions

One of the changes Mojang made in the 1.20 snapshots was to have the glint texture move across armor more slowly. The old speed in 1.17-1.19 doesn't look great with this pack, so I tried to slow it down a bit, but that adds a bit of jumpiness. It's not very noticeable though.

Make sure to use the version for your Minecraft version (the 1.19 one will say "too new" if you're on 1.19-1.19.2; you can ignore that)! The core shaders had changes in each major release, so it won't work at all if you use the wrong one.

Extra note: If you're using 1.18.2, download the 1.19 pack!

Credit/u/Mudkip-Mudkip-Mudkip for suggesting I use a bitwise operator to speed things up a bit
Progress100% complete
Game VersionMinecraft 1.19.3
Resolution16x
Tags

Create an account or sign in to comment.

Git_Sugar
07/15/2023 2:05 pm
Level 38 : Artisan Crafter
Git_Sugar's Avatar
I love this, I'm making a resourcepack that uses the runes from illagers as the enchantment texture and I'd like to include this in the pack bc it makes the armor look cooler, I can also just redirect them towards here
1
Burzowy-Szczurek
05/21/2023 5:38 am
Level 1 : New Crafter
Burzowy-Szczurek's Avatar
Love this glint, thanks.
1
Crimsonix69
05/02/2023 6:50 pm
Level 1 : New Miner
Crimsonix69's Avatar
For versions/snapshots 1.19.4 Pre-release 1 and up, two glint textures are used. The armor glint texture is more empty than the item glint (which is the original). I found this out recently.

Here's the link to a pack that restores the original glint and the intended effect of the pack:
https://modrinth.com/resourcepack/legacyglint
1
Burzowy-Szczurek
05/21/2023 5:38 am
Level 1 : New Crafter
Burzowy-Szczurek's Avatar
Thanks for the fix, I knew something is wrong, and now I know what, and have a solution :).
1
im a sheep kid
03/30/2023 7:37 pm
Level 32 : Artisan Sheep
im a sheep kid's Avatar
can you make a 1.12 or 1.8 version of this?
1
archon_andromeda
05/08/2024 3:25 pm
Level 41 : Master Pixel Puncher
archon_andromeda's Avatar
Extremely late reply but no, sorry. Support for custom shaders in vanilla only goes back to 1.17.
1
Block6t4
03/27/2023 3:04 pm
Level 1 : New Miner
Block6t4's Avatar
Yo can I use this in my texture pack which Im gonna publish soon?

(Yes I will definietly credit you)
1
03/20/2023 10:27 pm
This reply was removed by the poster or a moderator.
darwinn_
04/16/2023 9:41 pm
Level 9 : Apprentice Goblin
darwinn_'s Avatar
i think theres an option that allows you to turn up the intensity of the enchant glint
1
AtticusJay
03/15/2023 5:57 pm
Level 22 : Expert Miner
AtticusJay's Avatar
I wasn't able to get the 1.19.3 version to work, but 1.19.4 seems to work alright. The only thing that I've notices which doesn't seem right is the glint is fairly weak even with 100% strength in the settings.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome