Vulkan fragment shader: color peak cache-code-ferrofluid ripple cathedral. 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_smooth ext.u3.w |
| #define | history_head int(ext.u3.x) |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | spectrum_history_head int(ext.audio_history.x) |
| #define | spectrum_history_size int(ext.audio_history.y) |
| #define | time_f ext.u2.y |
| #define | SIZE 8 |
| #define | CACHE_HISTORY_LAYER(index) |
| #define | SPECTRUM_HISTORY_LAYER(index) |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec2 | mirrorUV (vec2 u) |
| Evaluates mirrorUV for this shader effect. | |
| mat2 | rot (float a) |
| Evaluates rot for this shader effect. | |
| vec3 | pal (float x) |
| Evaluates pal for this shader effect. | |
| vec3 | tone (vec3 x) |
| Evaluates tone for this shader effect. | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| float | noise (vec2 p) |
| Evaluates noise for this shader effect. | |
| vec4 | cache (int i, vec2 u) |
| Evaluates cache for this shader effect. | |
| float | hist (int i, float f) |
| Evaluates hist for this shader effect. | |
| float | field (vec2 p, vec2 o, float b, float m) |
| Evaluates field for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: color peak cache-code-ferrofluid ripple cathedral.
Definition in file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 39 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define history_head int(ext.u3.x) |
Definition at line 22 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define iMouse ext.mouse |
Definition at line 23 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define iResolution ext.u0.zw |
Definition at line 24 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define SIZE 8 |
Definition at line 36 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 25 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 46 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 26 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| #define time_f ext.u2.y |
Definition at line 27 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| vec4 cache | ( | int | i, |
| vec2 | u ) |
Evaluates cache for this shader effect.
| i | Input value for the calculation. |
| u | Input value for the calculation. |
Definition at line 111 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References cache(), and CACHE_HISTORY_LAYER.
| float field | ( | vec2 | p, |
| vec2 | o, | ||
| float | b, | ||
| float | m ) |
Evaluates field for this shader effect.
| p | Input value for the calculation. |
| o | Input value for the calculation. |
| b | Input value for the calculation. |
| m | Input value for the calculation. |
Definition at line 157 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 91 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References hash().
| float hist | ( | int | i, |
| float | f ) |
Evaluates hist for this shader effect.
| i | Input value for the calculation. |
| f | Input value for the calculation. |
Definition at line 134 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References hist(), and SPECTRUM_HISTORY_LAYER.
| 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_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 172 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References amp_high, amp_low, amp_peak, amp_smooth, cache(), field(), h(), hist(), iMouse, iResolution, main(), mirrorUV(), n(), pal(), rot(), spec(), time_f, and tone().
| vec2 mirrorUV | ( | vec2 | u | ) |
Evaluates mirrorUV for this shader effect.
| u | Input value for the calculation. |
Definition at line 58 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References mirrorUV().
| float noise | ( | vec2 | p | ) |
Evaluates noise for this shader effect.
| p | Input value for the calculation. |
Definition at line 99 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| vec3 pal | ( | float | x | ) |
Evaluates pal for this shader effect.
| x | Input value for the calculation. |
Definition at line 75 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| mat2 rot | ( | float | a | ) |
Evaluates rot for this shader effect.
| a | Input value for the calculation. |
Definition at line 66 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
References rot().
| vec3 tone | ( | vec3 | x | ) |
| ext |
Definition at line 16 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.
| const float TAU = 6.28318530718 |
Definition at line 51 of file color_peak_cache-code-ferrofluid_ripple_cathedral.frag.