
Что это
A Minecraft mod that exposes client-side scoreboard values to post-effect shaders via named bindings.
- Тип: мод
- Загрузчик: fabric, neoforge
- Версии Minecraft: 26.3
- Скачиваний на Modrinth: 1 059
Подробно
Shaderboard Shaderboard lets vanilla resource-pack post-effect shaders read client-side scoreboard values through named bindings.
A binding is declared inside a post-effect's JSON file (the same file that defines its passes). This mod turns each binding into a real GLSL uniform block with a GPU buffer, and rewrites those buffers with live scoreboard values every frame. Shaders can then use those values however they like.
> Note: This mod is for vanilla /posteffect command shaders. It does not target shaders from mods like Iris and Optifine.
Declaring bindings Add a "shaderboard:bindings" array at the root of a post-effect JSON, next to "targets" and "passes". Here is an example: json { "targets": { ... }, "passes": [ ... ],
"shaderboard:bindings": [ { "uniformname": "uSteveScore", "type": "shaderboard:scoreboardobjective", "objective": "example1", "target": { "type": "player", "name": "Steve" } } ] }
Where: - uniformname - Name of the GLSL uniform block a binding creates. - type - Binding type. I.e. the type of information a binding exposes.
When type is shaderboard:scoreboardobjective: - objective - Scoreboard objective name. - target - Defines which score of an objective to bind. - type - The type of target to bind to; local player's score (localplayer), a specific player's score (player), the top score (topplayer), or a fixed-size array of scores (array). - name - When type is player, this additional field defines "which player".
> Note: This is just one example of many possibilitis; from passing arrays of scores to passing other client-sided information, etc etc. Please refer to the wiki for more information.
> Important : Scoreboard scores are server-sided and by default do not synchronize with clients. To resolve this, use one of the two following solutions: > 1. /scoreboard objectives setdisplay ... - Makes the vanilla game synchronize an objective's values with the client by visually displaying it on-screen. > 2. /scoreboard objectives shaderboard:sync ... (v2.4.0+) - This mod's way of synchronizing objective values with clients in the background, without needing setdisplay. Requires installing this mod on the server-side.
Each binding's uniformname becomes a layout(std140) uniform block. Its contents are defined by the binding's value type. Scalar scoreboard targets produce a single int:
glsl layout(std140) uniform uTopScore { int topScore; }; layout(std140) uniform uSortedScoresAZ { int sortedScores[16]; };
void main() { //base output color fragColor = texture(In
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Progress Destroy Stage
( RU ) Ресурс пак который изменит вид ломания блока с наскучевшего, на более удобный и понятный. /// ( EN ) A resource pack that will… 05.12.2026
Only Create
A good collection of mods, consisting of "Create" mods and good additional mods that will improve the gameplay in the Minecraft game. 05.12.2026
Hued Mobs
Make every individual mob more diverse with a hue shift! 05.12.2026
Nebulus Juice Trader
add a new trader with 5 drinks and structure also a new enchantment effect 05.12.2026
AdminWatchdog
AdminWatchdog lets you monitor what staff members do on your server. When an admin runs a command, changes gamemode, or takes items from… 05.12.2026