Vulkan fragment shader: color peak cache-code-holographic bubble membrane. 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 | mir (vec2 u) |
| Evaluates mir for this shader effect. | |
| mat2 | R (float a) |
| Evaluates R for this shader effect. | |
| vec3 | film (float x, float v) |
| Evaluates film for this shader effect. | |
| vec3 | tone (vec3 x) |
| Evaluates tone for this shader effect. | |
| vec4 | C (int i, vec2 u) |
| Evaluates C for this shader effect. | |
| float | S (int i, float f) |
| Evaluates S for this shader effect. | |
| float | bubble (vec2 p, vec2 c, float r) |
| Evaluates bubble for this shader effect. | |
| float | H (vec2 p, vec2 o, float b, float m) |
| Evaluates H 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-holographic bubble membrane.
Definition in file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 39 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define history_head int(ext.u3.x) |
Definition at line 22 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define iMouse ext.mouse |
Definition at line 23 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define iResolution ext.u0.zw |
Definition at line 24 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define SIZE 8 |
Definition at line 36 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 25 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 46 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 26 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| #define time_f ext.u2.y |
Definition at line 27 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| float bubble | ( | vec2 | p, |
| vec2 | c, | ||
| float | r ) |
Evaluates bubble for this shader effect.
| p | Input value for the calculation. |
| c | Input value for the calculation. |
| r | Input value for the calculation. |
Definition at line 137 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References bubble().
| vec4 C | ( | int | i, |
| vec2 | u ) |
Evaluates C for this shader effect.
| i | Input value for the calculation. |
| u | Input value for the calculation. |
Definition at line 92 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References C(), and CACHE_HISTORY_LAYER.
| vec3 film | ( | float | x, |
| float | v ) |
Evaluates film for this shader effect.
| x | Input value for the calculation. |
| v | Input value for the calculation. |
Definition at line 75 of file color_peak_cache-code-holographic_bubble_membrane.frag.
Referenced by film(), film(), film(), iridescentMetal(), main(), main(), oilSlick(), psyche_field(), and shade().
| float H | ( | vec2 | p, |
| vec2 | o, | ||
| float | b, | ||
| float | m ) |
Evaluates H 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 149 of file color_peak_cache-code-holographic_bubble_membrane.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_peak_cache-code-holographic_bubble_membrane.frag.
References layout().
| void main | ( | void | ) |
| vec2 mir | ( | vec2 | u | ) |
Evaluates mir for this shader effect.
| u | Input value for the calculation. |
Definition at line 57 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References mir().
| mat2 R | ( | float | a | ) |
Evaluates R for this shader effect.
| a | Input value for the calculation. |
Definition at line 65 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References R().
| float S | ( | int | i, |
| float | f ) |
Evaluates S for this shader effect.
| i | Input value for the calculation. |
| f | Input value for the calculation. |
Definition at line 115 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References S(), and SPECTRUM_HISTORY_LAYER.
| vec3 tone | ( | vec3 | x | ) |
Evaluates tone for this shader effect.
| x | Input value for the calculation. |
Definition at line 83 of file color_peak_cache-code-holographic_bubble_membrane.frag.
References tone().
| ext |
Definition at line 16 of file color_peak_cache-code-holographic_bubble_membrane.frag.
| const float TAU = 6.28318530718 |
Definition at line 51 of file color_peak_cache-code-holographic_bubble_membrane.frag.