Fancy Glint

Outline your enchanted armor!

Редакция NLZONE · 2 мин чтения · 1 просмотр
Fancy Glint
Скачать Fancy Glint1.17 – 23w06a · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Outline your enchanted armor!

  • Тип: текстуры
  • Загрузчик: minecraft
  • Версии Minecraft: 1.17 – 23w06a
  • Скачиваний на Modrinth: 63 746

Подробно

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!

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 glVertexID 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 glVertexID % 4 == 0 , it’s (0, 0) , if glVertexID % 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.

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.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также