Shader DevTools
作者:seailz
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.
介绍
中文介绍正在准备中,下面暂时显示原文。
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
常见问题
Shader DevTools 支持哪些 Minecraft 版本?
Shader DevTools 支持 Minecraft Java 版 26.2–26.3,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Shader DevTools 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分