Vulkan fragment shader: peak inversion texture-code cache-3-chrome aurora maze. 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 | history_head int(ext.u3.x) |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | slider1 ext.custom_uniforms[5].x |
| #define | slider2 ext.custom_uniforms[5].y |
| #define | slider3 ext.custom_uniforms[5].z |
| #define | slider4 ext.custom_uniforms[5].w |
| #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 | FX_MODE 4 |
| #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 | rotate2D (float a) |
| Evaluates rotate2D for this shader effect. | |
| vec2 | mirrorUV (vec2 uv) |
| Evaluates mirrorUV for this shader effect. | |
| vec2 | seamlessUV (vec2 uv) |
| Evaluates seamlessUV for this shader effect. | |
| float | hash21 (vec2 p) |
| Evaluates hash21 for this shader effect. | |
| float | noise21 (vec2 p) |
| Evaluates noise21 for this shader effect. | |
| float | fbm (vec2 p) |
| Evaluates fbm for this shader effect. | |
| vec2 | hexCell (vec2 p) |
| Evaluates hexCell for this shader effect. | |
| vec2 | kaleido (vec2 p, float sides) |
| Evaluates kaleido for this shader effect. | |
| vec3 | palette (float x) |
| Evaluates palette for this shader effect. | |
| vec3 | aces (vec3 x) |
| Evaluates aces for this shader effect. | |
| vec4 | sampleCache (int index, vec2 uv) |
| Evaluates sampleCache for this shader effect. | |
| float | sampleHistory (int index, float frequency) |
| Evaluates sampleHistory for this shader effect. | |
| float | effectField (vec2 p, vec2 origin, float bass, float mid, float treble) |
| Evaluates effectField for this shader effect. | |
| vec2 | feedbackTransform (vec2 uv, vec2 center, float generation, float bass, float mid, float treble, vec2 normalFlow) |
| float | modeOverlay (vec2 p, float height, float audio) |
| Evaluates modeOverlay for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
| const int | MODE = FX_MODE |
Vulkan fragment shader: peak inversion texture-code cache-3-chrome aurora maze.
Definition in file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_rms ext.u3.z |
Definition at line 21 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define amp_smooth ext.u3.w |
Definition at line 22 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 46 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define FX_MODE 4 |
Definition at line 36 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define history_head int(ext.u3.x) |
Definition at line 23 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define iMouse ext.mouse |
Definition at line 24 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define iResolution ext.u0.zw |
Definition at line 25 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define SIZE 8 |
Definition at line 43 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define slider1 ext.custom_uniforms[5].x |
Definition at line 26 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define slider2 ext.custom_uniforms[5].y |
Definition at line 27 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define slider3 ext.custom_uniforms[5].z |
Definition at line 28 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define slider4 ext.custom_uniforms[5].w |
Definition at line 29 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 30 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 53 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 31 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| #define time_f ext.u2.y |
Definition at line 32 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| vec3 aces | ( | vec3 | x | ) |
Evaluates aces for this shader effect.
| x | Input value for the calculation. |
Definition at line 204 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References aces().
| float effectField | ( | vec2 | p, |
| vec2 | origin, | ||
| float | bass, | ||
| float | mid, | ||
| float | treble ) |
Evaluates effectField for this shader effect.
| p | Input value for the calculation. |
| origin | Input value for the calculation. |
| bass | Input value for the calculation. |
| mid | Input value for the calculation. |
| treble | Input value for the calculation. |
Definition at line 263 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References amp_smooth, aurora(), bloom(), cell(), effectField(), fbm(), field(), h(), hexCell(), interference(), kaleido(), MODE, ribbons(), ripple(), rotate2D(), slider1, slider2, time_f, twist(), and vortex().
| float fbm | ( | vec2 | p | ) |
Evaluates fbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 134 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References fbm(), noise21(), and rotate2D().
| vec2 feedbackTransform | ( | vec2 | uv, |
| vec2 | center, | ||
| float | generation, | ||
| float | bass, | ||
| float | mid, | ||
| float | treble, | ||
| vec2 | normalFlow ) |
Definition at line 407 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References feedbackTransform(), kaleido(), MODE, rotate2D(), and time_f.
| float hash21 | ( | vec2 | p | ) |
Evaluates hash21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 112 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References hash21().
| vec2 hexCell | ( | vec2 | p | ) |
Evaluates hexCell for this shader effect.
| p | Input value for the calculation. |
Definition at line 150 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References hexCell().
| vec2 kaleido | ( | vec2 | p, |
| float | sides ) |
Evaluates kaleido for this shader effect.
| p | Input value for the calculation. |
| sides | Input value for the calculation. |
Definition at line 163 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.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 peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 464 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References aces(), amp_high, amp_low, amp_mid, amp_peak, amp_rms, amp_smooth, effectField(), feedbackTransform(), iMouse, iResolution, luminance(), main(), MODE, modeOverlay(), palette(), sampleCache(), sampleHistory(), seamlessUV(), slider2, slider3, slider4, and time_f.
| vec2 mirrorUV | ( | vec2 | uv | ) |
Evaluates mirrorUV for this shader effect.
| uv | Input value for the calculation. |
Definition at line 88 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References mirrorUV().
| float modeOverlay | ( | vec2 | p, |
| float | height, | ||
| float | audio ) |
Evaluates modeOverlay for this shader effect.
| p | Input value for the calculation. |
| height | Input value for the calculation. |
| audio | Input value for the calculation. |
Definition at line 445 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References MODE, modeOverlay(), and time_f.
Referenced by main(), and modeOverlay().
| float noise21 | ( | vec2 | p | ) |
Evaluates noise21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 121 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| vec3 palette | ( | float | x | ) |
Evaluates palette for this shader effect.
| x | Input value for the calculation. |
Definition at line 175 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| mat2 rotate2D | ( | float | a | ) |
Evaluates rotate2D for this shader effect.
| a | Input value for the calculation. |
Definition at line 77 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References rotate2D().
| vec4 sampleCache | ( | int | index, |
| vec2 | uv ) |
Evaluates sampleCache for this shader effect.
| index | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 214 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References CACHE_HISTORY_LAYER, and sampleCache().
| float sampleHistory | ( | int | index, |
| float | frequency ) |
Evaluates sampleHistory for this shader effect.
| index | Input value for the calculation. |
| frequency | Input value for the calculation. |
Definition at line 238 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References frequency, sampleHistory(), and SPECTRUM_HISTORY_LAYER.
| vec2 seamlessUV | ( | vec2 | uv | ) |
Evaluates seamlessUV for this shader effect.
| uv | Input value for the calculation. |
Definition at line 99 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
References mirrorUV(), and seamlessUV().
Referenced by differenceTrailCore(), main(), sampleCache(), and seamlessUV().
| ext |
Definition at line 16 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| const int MODE = FX_MODE |
Definition at line 70 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.
| const float TAU = 6.28318530718 |
Definition at line 69 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.