Vulkan fragment shader: rainbow x ink wave. More...
Go to the source code of this file.
Macros | |
| #define | amp_high ext.audio_bands.z |
| #define | amp_low ext.audio_bands.x |
| #define | amp_mid ext.audio_bands.y |
| #define | amp_peak ext.u2.w |
| #define | amp_rms ext.u3.z |
| #define | amp_smooth ext.u3.w |
| #define | iResolution ext.u0.zw |
| #define | iamp ext.u1.z |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec3 | rainbow (float t) |
| Evaluates rainbow for this shader effect. | |
| float | noise (vec2 p, sampler2D s) |
| Evaluates noise for this shader effect. | |
| vec2 | swirl (vec2 p, float t, float audioStr) |
| Evaluates swirl for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: rainbow x ink wave.
Definition in file rainbow_x_ink_wave.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file rainbow_x_ink_wave.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file rainbow_x_ink_wave.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file rainbow_x_ink_wave.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file rainbow_x_ink_wave.frag.
| #define amp_rms ext.u3.z |
Definition at line 21 of file rainbow_x_ink_wave.frag.
| #define amp_smooth ext.u3.w |
Definition at line 22 of file rainbow_x_ink_wave.frag.
| #define iamp ext.u1.z |
Definition at line 24 of file rainbow_x_ink_wave.frag.
| #define iResolution ext.u0.zw |
Definition at line 23 of file rainbow_x_ink_wave.frag.
| #define time_f ext.u2.y |
Definition at line 25 of file rainbow_x_ink_wave.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 rainbow_x_ink_wave.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 80 of file rainbow_x_ink_wave.frag.
References amp_high, amp_low, amp_mid, amp_peak, amp_smooth, iResolution, main(), n(), noise(), rainbow(), swirl(), and time_f.
| float noise | ( | vec2 | p, |
| sampler2D | s ) |
Evaluates noise for this shader effect.
| p | Input value for the calculation. |
| s | Input value for the calculation. |
Definition at line 59 of file rainbow_x_ink_wave.frag.
References noise().
| vec3 rainbow | ( | float | t | ) |
Evaluates rainbow for this shader effect.
| t | Input value for the calculation. |
Definition at line 45 of file rainbow_x_ink_wave.frag.
References rainbow().
| vec2 swirl | ( | vec2 | p, |
| float | t, | ||
| float | audioStr ) |
Evaluates swirl for this shader effect.
| p | Input value for the calculation. |
| t | Input value for the calculation. |
| audioStr | Input value for the calculation. |
Definition at line 70 of file rainbow_x_ink_wave.frag.
| ext |
Definition at line 16 of file rainbow_x_ink_wave.frag.