Vulkan fragment shader: comb3 geo mouse. More...
Go to the source code of this file.
Macros | |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| float | h1 (float n) |
| Evaluates h1 for this shader effect. | |
| vec2 | h2 (float n) |
| Evaluates h2 for this shader effect. | |
| vec2 | rotateUV (vec2 uv, float a, vec2 c, float aspect) |
| Evaluates rotateUV for this shader effect. | |
| vec2 | reflectUV (vec2 uv, float segments, vec2 c, float aspect) |
| Evaluates reflectUV for this shader effect. | |
| vec2 | tileMirror (vec2 uv, float tiles, vec2 c) |
| Evaluates tileMirror for this shader effect. | |
| vec2 | swirl (vec2 uv, vec2 c, float aspect, float k) |
| Evaluates swirl for this shader effect. | |
| vec2 | fractalZoom (vec2 uv, float zoom, float t, vec2 c, float aspect) |
| Evaluates fractalZoom for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: comb3 geo mouse.
Definition in file comb3_geo_mouse.frag.
| #define iMouse ext.mouse |
Definition at line 17 of file comb3_geo_mouse.frag.
| #define iResolution ext.u0.zw |
Definition at line 18 of file comb3_geo_mouse.frag.
| #define time_f ext.u2.y |
Definition at line 19 of file comb3_geo_mouse.frag.
| vec2 fractalZoom | ( | vec2 | uv, |
| float | zoom, | ||
| float | t, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates fractalZoom for this shader effect.
| uv | Input value for the calculation. |
| zoom | Input value for the calculation. |
| t | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 130 of file comb3_geo_mouse.frag.
References fractalZoom(), and rotateUV().
| float h1 | ( | float | n | ) |
Evaluates h1 for this shader effect.
| n | Input value for the calculation. |
Definition at line 44 of file comb3_geo_mouse.frag.
| vec2 h2 | ( | float | n | ) |
Evaluates h2 for this shader effect.
| n | Input value for the calculation. |
Definition at line 50 of file comb3_geo_mouse.frag.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file comb3_geo_mouse.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 142 of file comb3_geo_mouse.frag.
References fractalZoom(), h1(), iMouse, iResolution, main(), pingPong(), reflectUV(), rotateUV(), seed, swirl(), tileMirror(), tiles(), time_f, and warp().
| float pingPong | ( | float | x, |
| float | length ) |
Evaluates pingPong for this shader effect.
| x | Input value for the calculation. |
| length | Input value for the calculation. |
Definition at line 34 of file comb3_geo_mouse.frag.
References pingPong().
| vec2 reflectUV | ( | vec2 | uv, |
| float | segments, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates reflectUV for this shader effect.
| uv | Input value for the calculation. |
| segments | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 77 of file comb3_geo_mouse.frag.
References reflectUV().
| vec2 rotateUV | ( | vec2 | uv, |
| float | a, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates rotateUV for this shader effect.
| uv | Input value for the calculation. |
| a | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 60 of file comb3_geo_mouse.frag.
References rotateUV().
| vec2 swirl | ( | vec2 | uv, |
| vec2 | c, | ||
| float | aspect, | ||
| float | k ) |
Evaluates swirl for this shader effect.
| uv | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
| k | Input value for the calculation. |
Definition at line 111 of file comb3_geo_mouse.frag.
References swirl().
| vec2 tileMirror | ( | vec2 | uv, |
| float | tiles, | ||
| vec2 | c ) |
Evaluates tileMirror for this shader effect.
| uv | Input value for the calculation. |
| tiles | Input value for the calculation. |
| c | Input value for the calculation. |
Definition at line 97 of file comb3_geo_mouse.frag.
References tileMirror(), and tiles().
Referenced by main(), and tileMirror().
| ext |
Definition at line 16 of file comb3_geo_mouse.frag.