Vulkan fragment shader: comb3. More...
Go to the source code of this file.
Macros | |
| #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. | |
| vec2 | rotateUV (vec2 uv, float angle) |
| Evaluates rotateUV for this shader effect. | |
| vec2 | reflectUV (vec2 uv, float segments) |
| Evaluates reflectUV for this shader effect. | |
| vec2 | fractalZoom (vec2 uv, float zoom, float time) |
| Evaluates fractalZoom for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: comb3.
Definition in file comb3.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file comb3.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file comb3.frag.
| vec2 fractalZoom | ( | vec2 | uv, |
| float | zoom, | ||
| float | time ) |
Evaluates fractalZoom for this shader effect.
| uv | Input value for the calculation. |
| zoom | Input value for the calculation. |
| time | Input value for the calculation. |
Definition at line 74 of file comb3.frag.
References fractalZoom(), and rotateUV().
| 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.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 85 of file comb3.frag.
References fractalZoom(), iResolution, kaleidoUV(), main(), pingPong(), reflectUV(), rotateUV(), and time_f.
| 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 32 of file comb3.frag.
References pingPong().
| vec2 reflectUV | ( | vec2 | uv, |
| float | segments ) |
Evaluates reflectUV for this shader effect.
| uv | Input value for the calculation. |
| segments | Input value for the calculation. |
Definition at line 58 of file comb3.frag.
References reflectUV().
| vec2 rotateUV | ( | vec2 | uv, |
| float | angle ) |
Evaluates rotateUV for this shader effect.
| uv | Input value for the calculation. |
| angle | Input value for the calculation. |
Definition at line 43 of file comb3.frag.
References rotateUV().
| ext |
Definition at line 16 of file comb3.frag.