Vulkan fragment shader: audiocolor. More...
Go to the source code of this file.
Macros | |
| #define | amp ext.u1.y |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
| #define | uamp ext.u1.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec2 | swirl (vec2 uv, float centerRadius, float swirlAmount) |
| Evaluates swirl for this shader effect. | |
| float | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| vec3 | rainbow (float t) |
| Evaluates rainbow for this shader effect. | |
| void | main (void) |
Variables | |
| ext | |
Vulkan fragment shader: audiocolor.
Definition in file audiocolor.frag.
| #define amp ext.u1.y |
Definition at line 17 of file audiocolor.frag.
| #define iMouse ext.mouse |
Definition at line 18 of file audiocolor.frag.
| #define iResolution ext.u0.zw |
Definition at line 19 of file audiocolor.frag.
| #define time_f ext.u2.y |
Definition at line 20 of file audiocolor.frag.
| #define uamp ext.u1.y |
Definition at line 21 of file audiocolor.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 audiocolor.frag.
References layout().
| void main | ( | void | ) |
Definition at line 76 of file audiocolor.frag.
References amp, iResolution, main(), pingPong(), rainbow(), swirl(), time_f, and uamp.
| 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 56 of file audiocolor.frag.
References pingPong().
| vec3 rainbow | ( | float | t | ) |
Evaluates rainbow for this shader effect.
| t | Input value for the calculation. |
Definition at line 67 of file audiocolor.frag.
References rainbow().
| vec2 swirl | ( | vec2 | uv, |
| float | centerRadius, | ||
| float | swirlAmount ) |
Evaluates swirl for this shader effect.
| uv | Input value for the calculation. |
| centerRadius | Input value for the calculation. |
| swirlAmount | Input value for the calculation. |
Definition at line 40 of file audiocolor.frag.
References swirl().
Referenced by cache_transform(), main(), main(), sampleWarp(), spiralTwist(), spiralWarp(), swirl(), swirl(), swirl(), swirl(), swirl(), swirl(), and wormholeUV().
| ext |
Definition at line 16 of file audiocolor.frag.