Shader DevTools
Client-side fabric mod for working on Minecraft core shaders, post shaders, post effects, and render pipelines without restarting the game or reloading the resource pack.
https://github.com/seailz/shader-devtools
Features
- Reload shaders, both core and post, on demand without having to fully reload the resource pack
- Live editing of shader files in-game with syntax highlighting
- When a shader exists in multiple packs (including vanilla), ability to edit each of those individually (except vanilla shaders, which are read-only) and force load them
- Ability to quickly visualize what a shader is rendering
- Parsing of post effect JSON files, and the ability to edit these too
- Parsing and visualization of all render pipelines
- Ability to override any value in the
Globalsuniform buffer
Shader Debug Logging
You can add calls like dbg("time=" + GameTime); to supported shader programs and the value will be written to logs/latest.log.
Notes:
- Works on both OpenGL and Vulkan
- ASCII string literals are supported
- Top-level string concatenation is supported, so
"abc" + someValueworks - Common scalar and vector values are converted to text automatically
Warning:
dbg(...)is still expensive in hot shaders, especially fragment shaders- Frequently changing values such as
GameTimecan reduce FPS if logged aggressively
How to Install Shader DevTools (Mod)
Shader DevTools by seailz is verified for Fabric across Minecraft versions 26.2, 26.2-pre-1, 26.2-pre-3, 26.2-pre-6, 26.2-rc-2, 26.2-snapshot-1, 26.2-snapshot-6, 26.2-snapshot-7 (latest release: 1.3.25, file size: 336 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (26.2, 26.2-pre-1, 26.2-pre-3, 26.2-pre-6, 26.2-rc-2, 26.2-snapshot-1, 26.2-snapshot-6, 26.2-snapshot-7) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Shader DevTools file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
|
R
1.3.25
|
8d ago | 1 | |||
|
R
1.3.24
|
15d ago | 1 | |||
|
R
1.3.23
|
22d ago | 1 | |||
|
R
1.3.22
|
29d ago | 1 | |||
|
R
1.3.21
|
1mo ago | 1 | |||
|
R
1.3.20
|
1mo ago | 1 | |||
|
R
1.3.19
|
2mo ago | 1 | |||
|
R
1.3.18
|
2mo ago | 1 | |||
|
R
1.3.17
|
2mo ago | 1 | |||
|
R
1.3.16
|
2mo ago | 1 | |||
|
R
1.3.14
|
3mo ago | 1 | |||
|
R
1.3.13
|
3mo ago | 1 | |||
|
R
1.3.12
|
3mo ago | 1 | |||
|
R
1.3.10
|
5mo ago | 1 | |||
|
R
1.3.9
|
5mo ago | 1 | |||
|
R
1.3.8
|
5mo ago | 1 | |||
|
R
1.3.7
|
5mo ago | 1 | |||
|
R
1.3.6
|
5mo ago | 1 | |||
|
R
1.3.5
|
5mo ago | 1 | |||
|
R
1.3.4
|
6mo ago | 1 | |||
|
R
1.3.3
|
6mo ago | 1 | |||
|
R
1.3.2
|
6mo ago | 1 | |||
|
R
1.3.1
|
6mo ago | 1 | |||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 |
- Errors when loading a shader now log to the chat
- You can now add a
dbg("abc")line to your shader to have it print to the Minecraft log (this is not supported by vanilla so you'll need to remove it before distributing your shaders)