Vulkan fragment shader: ant peak inversion cache spectrum time acid rain flood. More...
Go to the source code of this file.
Macros | |
| #define | amp_peak ext.u2.w |
| #define | amp_smooth ext.u3.w |
| #define | history_head int(ext.u3.x) |
| #define | iResolution ext.u0.zw |
| #define | iTime ext.u0.y |
| #define | spectrum_history_head int(ext.audio_history.x) |
| #define | spectrum_history_size int(ext.audio_history.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 | |
| vec3 | acid (float t) |
| Evaluates acid for this shader effect. | |
| vec3 | palette (float t, vec3 d) |
| Evaluates palette for this shader effect. | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| vec4 | cacheHist (int i, vec2 uv) |
| Evaluates cacheHist for this shader effect. | |
| float | specHist (int i, float f) |
| Evaluates specHist for this shader effect. | |
| float | histEnergy (float f) |
| Evaluates histEnergy for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
| const float | PI = 3.14159265359 |
Vulkan fragment shader: ant peak inversion cache spectrum time acid rain flood.
Definition in file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define amp_peak ext.u2.w |
Definition at line 13 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define amp_smooth ext.u3.w |
Definition at line 14 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 37 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define history_head int(ext.u3.x) |
Definition at line 15 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define iResolution ext.u0.zw |
Definition at line 16 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define iTime ext.u0.y |
Definition at line 17 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define SIZE 8 |
Definition at line 34 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 18 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 44 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 19 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| vec3 acid | ( | float | t | ) |
Evaluates acid for this shader effect.
| t | Input value for the calculation. |
Definition at line 59 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| vec4 cacheHist | ( | int | i, |
| vec2 | uv ) |
Evaluates cacheHist for this shader effect.
| i | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 89 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References CACHE_HISTORY_LAYER, and cacheHist().
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 78 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References hash().
| float histEnergy | ( | float | f | ) |
Evaluates histEnergy for this shader effect.
| f | Input value for the calculation. |
Definition at line 125 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References histEnergy(), and specHist().
Referenced by histEnergy(), main(), and main().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 3 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 134 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References acid(), cacheHist(), h(), h2(), hash(), histEnergy(), iResolution, iTime, main(), seed, and specHist().
| vec3 palette | ( | float | t, |
| vec3 | d ) |
Evaluates palette for this shader effect.
| t | Input value for the calculation. |
| d | Input value for the calculation. |
Definition at line 69 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| float specHist | ( | int | i, |
| float | f ) |
Evaluates specHist for this shader effect.
| i | Input value for the calculation. |
| f | Input value for the calculation. |
Definition at line 108 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
References specHist(), and SPECTRUM_HISTORY_LAYER.
| ext |
Definition at line 12 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| const float PI = 3.14159265359 |
Definition at line 52 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.
| const float TAU = 6.28318530718 |
Definition at line 51 of file ant_peak_inversion_cache_spectrum_time_acid_rain_flood.frag.