Vulkan fragment shader: frac shader02 dmd6i spectrum16. 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 | 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 | SPECTRUM_HISTORY_LAYER(index) |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | sample16 (int index, float freq) |
| Evaluates sample16 for this shader effect. | |
| float | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| vec2 | rotateUV (vec2 uv, float angle, vec2 c, float aspect) |
| Evaluates rotateUV for this shader effect. | |
| vec2 | reflectUV (vec2 uv, float segments, vec2 c, float aspect) |
| Evaluates reflectUV for this shader effect. | |
| vec2 | fractalFold (vec2 uv, float zoom, float t, float histPhase, vec2 c, float aspect) |
| Evaluates fractalFold for this shader effect. | |
| vec3 | neonPalette (float t) |
| Evaluates neonPalette for this shader effect. | |
| float | hash1 (float n) |
| Evaluates hash1 for this shader effect. | |
| vec2 | diamondFold (vec2 uv, vec2 c, float aspect) |
| Evaluates diamondFold for this shader effect. | |
| vec2 | continuousUv (vec2 pwrap, vec2 ar, vec2 center) |
| Evaluates continuousUv for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.14159265358979323846 |
Vulkan fragment shader: frac shader02 dmd6i spectrum16.
Definition in file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_rms ext.u3.z |
Definition at line 21 of file frac_shader02_dmd6i_spectrum16.frag.
| #define amp_smooth ext.u3.w |
Definition at line 22 of file frac_shader02_dmd6i_spectrum16.frag.
| #define iMouse ext.mouse |
Definition at line 23 of file frac_shader02_dmd6i_spectrum16.frag.
| #define iResolution ext.u0.zw |
Definition at line 24 of file frac_shader02_dmd6i_spectrum16.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 25 of file frac_shader02_dmd6i_spectrum16.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 51 of file frac_shader02_dmd6i_spectrum16.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 26 of file frac_shader02_dmd6i_spectrum16.frag.
| #define time_f ext.u2.y |
Definition at line 27 of file frac_shader02_dmd6i_spectrum16.frag.
| vec2 continuousUv | ( | vec2 | pwrap, |
| vec2 | ar, | ||
| vec2 | center ) |
Evaluates continuousUv for this shader effect.
| pwrap | Input value for the calculation. |
| ar | Input value for the calculation. |
| center | Input value for the calculation. |
Definition at line 212 of file frac_shader02_dmd6i_spectrum16.frag.
References continuousUv(), and n().
Referenced by continuousUv(), and main().
| vec2 diamondFold | ( | vec2 | uv, |
| vec2 | c, | ||
| float | aspect ) |
Evaluates diamondFold for this shader effect.
| uv | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 194 of file frac_shader02_dmd6i_spectrum16.frag.
References diamondFold().
| vec2 fractalFold | ( | vec2 | uv, |
| float | zoom, | ||
| float | t, | ||
| float | histPhase, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates fractalFold for this shader effect.
| uv | Input value for the calculation. |
| zoom | Input value for the calculation. |
| t | Input value for the calculation. |
| histPhase | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 146 of file frac_shader02_dmd6i_spectrum16.frag.
References fractalFold(), rotateUV(), and sample16().
| float hash1 | ( | float | n | ) |
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout(), and spectrum().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file frac_shader02_dmd6i_spectrum16.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 222 of file frac_shader02_dmd6i_spectrum16.frag.
References amp_high, amp_low, amp_mid, continuousUv(), diamondFold(), fractalFold(), hash1(), histEnergy(), iMouse, iResolution, main(), reflectUV(), rotateUV(), sample16(), spectrum(), and time_f.
| vec3 neonPalette | ( | float | t | ) |
Evaluates neonPalette for this shader effect.
| t | Input value for the calculation. |
Definition at line 167 of file frac_shader02_dmd6i_spectrum16.frag.
References neonPalette().
| float pingPong | ( | float | x, |
| float | length ) |
Evaluates pingPong for this shader effect.
| x | Input value for the calculation. |
| length | Input value for the calculation. |
Definition at line 90 of file frac_shader02_dmd6i_spectrum16.frag.
References pingPong().
| vec2 reflectUV | ( | vec2 | uv, |
| float | segments, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates reflectUV for this shader effect.
| uv | Input value for the calculation. |
| segments | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 120 of file frac_shader02_dmd6i_spectrum16.frag.
References reflectUV().
| vec2 rotateUV | ( | vec2 | uv, |
| float | angle, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates rotateUV for this shader effect.
| uv | Input value for the calculation. |
| angle | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 103 of file frac_shader02_dmd6i_spectrum16.frag.
References rotateUV().
| float sample16 | ( | int | index, |
| float | freq ) |
Evaluates sample16 for this shader effect.
| index | Input value for the calculation. |
| freq | Input value for the calculation. |
Definition at line 63 of file frac_shader02_dmd6i_spectrum16.frag.
References sample16(), and SPECTRUM_HISTORY_LAYER.
Referenced by fractalFold(), main(), and sample16().
| ext |
Definition at line 16 of file frac_shader02_dmd6i_spectrum16.frag.
| const float PI = 3.14159265358979323846 |
Definition at line 54 of file frac_shader02_dmd6i_spectrum16.frag.