ComfyUI Node
xShader
A ComfyUI node in MKRShift Nodes/Utility/Shader with 9 inputs and 3 outputs.
xShader
- image
- image
- shader_info
- video
◄shader_languageGLSL►
◄shader_codevec4 base = texture(srcTex, uv);
vec2 p = uv * 2.0 - 1.0;
float vignette = smoothstep(1.2, 0.2, length(p));
vec3 graded = base.rgb * vec3(1.04, 1.00, 0.96);
return vec4(graded * vignette, base.a);
►
◄time0.00►
◄time_modeconstant►
◄time_step0.0417►
◄strength1.00►
◄video_fps24►
◄fallback_on_errortrue►
CategoryMKRShift Nodes/Utility/Shader
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| shader_language | COMBO | GLSL | 2 options: GLSL, HLSL |
| shader_code | STRING | vec4 base = texture(srcTex, uv); vec2 p = uv * 2.0 - 1.0; float vignette = smoothstep(1.2, 0.2, length(p)); vec3 graded = base.rgb * vec3(1.04, 1.00, 0.96); return vec4(graded * vignette, base.a); | — |
| time | FLOAT | 0.00-100000–100000 | — |
| time_mode | COMBO | constant | 2 options: constant, per_frame |
| time_step | FLOAT | 0.0417-1000–1000 | — |
| strength | FLOAT | 1.000–2 | — |
| video_fps | INT | 241–240 | — |
| fallback_on_erroropt | BOOLEAN | true | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| shader_info | STRING | — |
| video | MKR_VIDEO | — |