TitleShader
Calling glsl for Shadertoy from the title command in Minecraft to display shaders / マインクラフトでtitleコマンドからShadertoy向けglslを呼び出し、シェーダーを表示します
Install / Use
/learn @midorikuma/TitleShaderREADME
日本語 | English
TitleShader
TitleShader is a ResourcePack Shader for Minecraft that allows you to display Shadertoy shaders using the title command.
How to Use
Setup
First, install the TitleShaderRP resource pack.
Then, apply two data packs: TitleShaderDP and ScoreToColorDP (available at this link).
After entering the world with these data packs, run the following setup commands:
/function stoc:setup
/scoreboard players set @s TextColorR 0
/scoreboard players set @s TextColorG 0
/scoreboard players set @s TextColorB 0
Displaying Shaders
To display the shader, use the following command:
/function titleshader:rgb {id:0}
The id parameter should be a number between 0 and 127, with 0 set for debug shader by default.
Adding New Shaders
To add new shaders, place the GLSL shader files in the TitleShaderRP\assets\minecraft\shaders\include folder and then:
- Edit
_fsh.glslin the same folder. - Uncomment lines 23-25 and replace
"file_name"on line 23 with your shader file name. - Add
<"file_name".glsl>on line 25. - Uncomment line 35 and replace
"file_name"as well. - The id value before
"file_name"links the id to your shader.
Example command to link an id 1 to a shader:
/function titleshader:rgb {id:1}
Linking Scores and Shaders
When executing titleshader:rgb, the shader reads values from the TextColorR, TextColorG, and TextColorB scores of the player executing the command. These scores can range from 0-255 for each RGB component.
Additional Commands:
titleshader:hsvfor HSV color values from theTextColorH,TextColorS, andTextColorVscores (H:0-360, S:0-255, V:0-255).titleshader:decimalfor Decimal color value from theTextColorDecimalscore (Decimal:0-16777215).
Shader scores are normalized to the range 0.0-1.0 and used in vertexColor.rgb.
When the iMouse and iTime variables commonly used in Shadertoy are called in the shader,
the values are reflected as follows:
vertexColor.xyrepresentsiMouse.vertexColor.zrepresentsiTime.
To use iTime as the number of seconds since the command was executed, executing titleshader:time.
/function titleshader:time {id:0}
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
