Back to mods
Shaderboard project artwork

CurseForge · Minecraft mod

Shaderboard

A Minecraft mod that exposes client-side scoreboard values to post-effect shaders via named bindings.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Shaderboard release matches Fabric?

Updated 3 days ago
Best match for your filters 2.5.0+fn-26.3
Game version 26.3
Loader Fabric, NeoForge

Shaderboard 2.5.0+fn-26.3 targets 26.3 with Fabric, NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Shaderboard required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric, NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Shaderboard 2.5.0+fn-26.3 need?

2.5.0+fn-26.3 on Fabric. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install TCDCommons API first. We found matching files for this game-version and loader setup.

TCDCommons API Needed by Shaderboard 2.5.0+fn-26.3
required
Matching file found Matched file: 5.9.1+fn-26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Shaderboard without breaking your instance.

Built for Shaderboard 2.5.0+fn-26.3 on Fabric. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.5.0+fn-26.3. It targets 26.3 with Fabric, NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install TCDCommons API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.5.0+fn-26.3. It opens that exact file at the source.

About this project

What does Shaderboard add?

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:

{
	"targets": { ... },
	"passes": [ ... ],

	"shaderboard:bindings":
	[
		{
			"uniform_name": "u_SteveScore",
			"type": "shaderboard:scoreboard_objective",
			"objective": "example_1",
			"target": { "type": "player", "name": "Steve" }
		}
	]
}

Where:

  • uniform_name - 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:scoreboard_objective:

  • 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 (local_player), a specific player's score (player), the top score (top_player), 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.


Reading a binding's value in GLSL

> <ins>Important</ins>: 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 uniform_name becomes a layout(std140) uniform block. Its contents are defined by the binding's value type. Scalar scoreboard targets produce a single int:

layout(std140) uniform u_TopScore { int topScore; };
layout(std140) uniform u_SortedScoresAZ { int sortedScores[16]; };

void main()
{
	//base output color
	fragColor = texture(InSampler, texCoord);

	//...use 'topScore' and 'sortedScores' however you'd like here...
}

Quick demo

This mod includes an example /posteffect of ID shaderboard:example_1. You may try it out using the following commands in order:

/posteffect add @p shaderboard:example_1

/scoreboard objectives add example_1 dummy "Example 1"
/scoreboard objectives setdisplay sidebar example_1

/scoreboard players set @p example_1 123
/scoreboard players set Steve example_1 456

This example shader reads scoreboard values from the example_1 objective and renders them on-screen as binary stripes.

Project description from CurseForge.

Pick your setup

Shaderboard by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Shaderboard versions and loaders

8 of 8 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.