Vulkan fragment shader: color swirl c. More...
Go to the source code of this file.
Macros | |
| #define | alpha ext.u0.x |
| #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 | smoothNoise (vec2 uv) |
| Evaluates smoothNoise for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: color swirl c.
Definition in file color_swirl_c.frag.
| #define alpha ext.u0.x |
Definition at line 17 of file color_swirl_c.frag.
| #define iResolution ext.u0.zw |
Definition at line 18 of file color_swirl_c.frag.
| #define time_f ext.u2.y |
Definition at line 19 of file color_swirl_c.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 color_swirl_c.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 51 of file color_swirl_c.frag.
References alpha, iResolution, main(), pingPong(), smoothNoise(), swirl(), time_f, and wave().
| 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 color_swirl_c.frag.
References pingPong().
| float smoothNoise | ( | vec2 | uv | ) |
Evaluates smoothNoise for this shader effect.
| uv | Input value for the calculation. |
Definition at line 44 of file color_swirl_c.frag.
References smoothNoise(), and time_f.
Referenced by fbm(), fractalNoise(), main(), smoothNoise(), and smoothNoise().
| ext |
Definition at line 16 of file color_swirl_c.frag.