vec4 | fragColor | Fragment shader's output for the color. The format is RGBA and it will be multiplied by default with the item opacity (qt_opacity). |
vec2 | texCoord | Normalized position of the fragment (0.0 - 1.0). |
vec2 | fragCoord | Position of the fragment in pixels (0.0 - iResolution.xy). |
vec2 | vertCoord | Position of the vertex in pixels (0.0 - iResolution.xy). Modify this in the vertex shader to move the vertices. |
vec3 | iResolution | Size of the source item / image in pixels. The z parameter is always 1.0 |
float | iTime | Animated time in seconds. |
int | iFrame | Animated frame number. |
sampler2D | iSource | Texture sampler of the source item / image. |
vec4 | iMouse | Mouse input helper where: "iMouse.xy" is the current mouse position. "abs(iMouse.zw)" is the starting position when the mouse button was pressed. "iMouse.z > 0.0" is true if button is currently down. "iMouse.w > 0.0" is briefly true when mouse button is pressed. |
@main | This tag can be used in both vertex and fragment shaders to separate code which belongs into root and inside main() method. If the tag is missing, all code goes into main. |
@requires [name] | This tag is used to inform that the node depends on other node called [name]. This dependency is not enforced, it is used just to inform the users. |
@nodes | This tag is used in the main node vertex and fragment shaders. It will get replaced with the main shader code of the following nodes. |
@mesh w, h | This optional tag is used in the vertex shaders to define GridMesh size. The default mesh size is (1, 1). If mesh tag is used multiple times (by different nodes), biggest values will be used. Example: "@mesh 20, 10" creates horizontally 20 and vertically 10 vertices grid mesh. |
@blursources | This optional tag is used by BlurHelper to generate pre-blurred sources (iSourceBlur1-6) which other nodes can then utilize. |