Vulkan fragment shader: psyche-bubble-cache-mobius-ribbon. 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 | PSYCHE_ID 9 |
| #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 | |
| mat2 | rotate_2d (float angle) |
| Evaluates rotate 2d for this shader effect. | |
| vec2 | mirror_repeat (vec2 point) |
| Evaluates mirror repeat for this shader effect. | |
| float | hash_21 (vec2 point) |
| Evaluates hash 21 for this shader effect. | |
| float | value_noise (vec2 point) |
| Evaluates value noise for this shader effect. | |
| float | fbm (vec2 point) |
| Evaluates fbm for this shader effect. | |
| vec2 | hex_cell (vec2 point) |
| Evaluates hex cell for this shader effect. | |
| vec2 | kaleidoscope (vec2 point, float sides) |
| Evaluates kaleidoscope for this shader effect. | |
| vec2 | recursive_fold (vec2 point, float phase) |
| Evaluates recursive fold for this shader effect. | |
| vec2 | voronoi_cell (vec2 point) |
| Evaluates voronoi cell for this shader effect. | |
| vec3 | palette (float phase) |
| Evaluates palette for this shader effect. | |
| vec3 | tone_map (vec3 value) |
| Evaluates tone map for this shader effect. | |
| vec4 | sample_live (vec2 uv) |
| Evaluates sample live for this shader effect. | |
| vec4 | sample_cache (int index, vec2 uv) |
| Evaluates sample cache for this shader effect. | |
| float | sample_history (int index, float frequency) |
| Evaluates sample history for this shader effect. | |
| vec3 | psyche_field (vec2 point, float bass, float middle, float treble, float age) |
| Evaluates psyche field for this shader effect. | |
| vec2 | psyche_warp (vec2 uv, vec2 point, vec3 signal, float bass, float middle, float treble, float age) |
| float | layer_gate (vec2 point, vec3 signal, float progress, int index) |
| Evaluates layer gate for this shader effect. | |
| vec3 | memory_blend (vec3 live_color, vec3 memory, vec3 previous, int index, float energy) |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.14159265359 |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: psyche-bubble-cache-mobius-ribbon.
Definition in file psyche-bubble-cache-mobius-ribbon.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 13 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 14 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 15 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define amp_peak ext.u2.w |
Definition at line 16 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define amp_smooth ext.u3.w |
Definition at line 17 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 41 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define history_head int(ext.u3.x) |
Definition at line 18 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define iMouse ext.mouse |
Definition at line 19 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define iResolution ext.u0.zw |
Definition at line 20 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define PSYCHE_ID 9 |
Definition at line 31 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define SIZE 8 |
Definition at line 38 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 21 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 48 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 22 of file psyche-bubble-cache-mobius-ribbon.frag.
| #define time_f ext.u2.y |
Definition at line 23 of file psyche-bubble-cache-mobius-ribbon.frag.
| float fbm | ( | vec2 | point | ) |
Evaluates fbm for this shader effect.
| point | Input value for the calculation. |
Definition at line 110 of file psyche-bubble-cache-mobius-ribbon.frag.
References fbm(), rotate_2d(), and value_noise().
| float hash_21 | ( | vec2 | point | ) |
Evaluates hash 21 for this shader effect.
| point | Input value for the calculation. |
Definition at line 87 of file psyche-bubble-cache-mobius-ribbon.frag.
References hash_21().
| vec2 hex_cell | ( | vec2 | point | ) |
Evaluates hex cell for this shader effect.
| point | Input value for the calculation. |
Definition at line 126 of file psyche-bubble-cache-mobius-ribbon.frag.
References hex_cell().
| vec2 kaleidoscope | ( | vec2 | point, |
| float | sides ) |
Evaluates kaleidoscope for this shader effect.
| point | Input value for the calculation. |
| sides | Input value for the calculation. |
Definition at line 139 of file psyche-bubble-cache-mobius-ribbon.frag.
References kaleidoscope(), and TAU.
| float layer_gate | ( | vec2 | point, |
| vec3 | signal, | ||
| float | progress, | ||
| int | index ) |
Evaluates layer gate for this shader effect.
| point | Input value for the calculation. |
| signal | Input value for the calculation. |
| progress | Input value for the calculation. |
| index | Input value for the calculation. |
Definition at line 295 of file psyche-bubble-cache-mobius-ribbon.frag.
References layer_gate(), and TAU.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 3 of file psyche-bubble-cache-mobius-ribbon.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 332 of file psyche-bubble-cache-mobius-ribbon.frag.
References amp_high, amp_low, amp_mid, amp_peak, amp_smooth, iMouse, iResolution, layer_gate(), main(), memory_blend(), palette(), psyche_field(), PSYCHE_ID, psyche_warp(), sample_cache(), sample_history(), sample_live(), saturation(), SIZE, TAU, time_f, and tone_map().
| vec3 memory_blend | ( | vec3 | live_color, |
| vec3 | memory, | ||
| vec3 | previous, | ||
| int | index, | ||
| float | energy ) |
Definition at line 304 of file psyche-bubble-cache-mobius-ribbon.frag.
References energy(), memory_blend(), and PSYCHE_ID.
| vec2 mirror_repeat | ( | vec2 | point | ) |
Evaluates mirror repeat for this shader effect.
| point | Input value for the calculation. |
Definition at line 78 of file psyche-bubble-cache-mobius-ribbon.frag.
References mirror_repeat().
| vec3 palette | ( | float | phase | ) |
| vec3 psyche_field | ( | vec2 | point, |
| float | bass, | ||
| float | middle, | ||
| float | treble, | ||
| float | age ) |
Evaluates psyche field for this shader effect.
| point | Input value for the calculation. |
| bass | Input value for the calculation. |
| middle | Input value for the calculation. |
| treble | Input value for the calculation. |
| age | Input value for the calculation. |
Definition at line 255 of file psyche-bubble-cache-mobius-ribbon.frag.
References psyche_field(), TAU, and time_f.
| vec2 psyche_warp | ( | vec2 | uv, |
| vec2 | point, | ||
| vec3 | signal, | ||
| float | bass, | ||
| float | middle, | ||
| float | treble, | ||
| float | age ) |
Definition at line 270 of file psyche-bubble-cache-mobius-ribbon.frag.
References iResolution, PI, psyche_warp(), rotate_2d(), and TAU.
| vec2 recursive_fold | ( | vec2 | point, |
| float | phase ) |
Evaluates recursive fold for this shader effect.
| point | Input value for the calculation. |
| phase | Input value for the calculation. |
Definition at line 152 of file psyche-bubble-cache-mobius-ribbon.frag.
References fold(), recursive_fold(), and rotate_2d().
| mat2 rotate_2d | ( | float | angle | ) |
Evaluates rotate 2d for this shader effect.
| angle | Input value for the calculation. |
Definition at line 67 of file psyche-bubble-cache-mobius-ribbon.frag.
References rotate_2d().
| vec4 sample_cache | ( | int | index, |
| vec2 | uv ) |
Evaluates sample cache for this shader effect.
| index | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 228 of file psyche-bubble-cache-mobius-ribbon.frag.
References CACHE_HISTORY_LAYER, mirror_repeat(), and sample_cache().
| float sample_history | ( | int | index, |
| float | frequency ) |
Evaluates sample history for this shader effect.
| index | Input value for the calculation. |
| frequency | Input value for the calculation. |
Definition at line 239 of file psyche-bubble-cache-mobius-ribbon.frag.
References frequency, sample_history(), and SPECTRUM_HISTORY_LAYER.
| vec4 sample_live | ( | vec2 | uv | ) |
Evaluates sample live for this shader effect.
| uv | Input value for the calculation. |
Definition at line 218 of file psyche-bubble-cache-mobius-ribbon.frag.
References mirror_repeat(), and sample_live().
| vec3 tone_map | ( | vec3 | value | ) |
Evaluates tone map for this shader effect.
| value | Input value for the calculation. |
Definition at line 206 of file psyche-bubble-cache-mobius-ribbon.frag.
References tone_map().
| float value_noise | ( | vec2 | point | ) |
Evaluates value noise for this shader effect.
| point | Input value for the calculation. |
Definition at line 96 of file psyche-bubble-cache-mobius-ribbon.frag.
References cell(), hash_21(), and value_noise().
| vec2 voronoi_cell | ( | vec2 | point | ) |
Evaluates voronoi cell for this shader effect.
| point | Input value for the calculation. |
Definition at line 165 of file psyche-bubble-cache-mobius-ribbon.frag.
References hash_21(), TAU, time_f, and voronoi_cell().
| ext |
Definition at line 12 of file psyche-bubble-cache-mobius-ribbon.frag.
| const float PI = 3.14159265359 |
Definition at line 59 of file psyche-bubble-cache-mobius-ribbon.frag.
| const float TAU = 6.28318530718 |
Definition at line 60 of file psyche-bubble-cache-mobius-ribbon.frag.