Vulkan fragment shader: darkstar-spectrum-trail-cache-aurora-crucible. More...
Go to the source code of this file.
Macros | |
| #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 | STYLE_ID 6 |
| #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. | |
| vec2 | mirror_gradient (vec2 uv, vec2 screen_gradient) |
| Evaluates mirror gradient for this shader effect. | |
| vec4 | sample_live (vec2 uv) |
| Evaluates sample live for this shader effect. | |
| vec4 | sample_cache (vec2 uv, int index) |
| Evaluates sample cache for this shader effect. | |
| float | spectrum_band (float center, float width) |
| Evaluates spectrum band for this shader effect. | |
| float | history_band (int index, float center, float width) |
| Evaluates history band 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. | |
| vec2 | rotate_uv (vec2 uv, float angle, vec2 center, float aspect) |
| Evaluates rotate uv for this shader effect. | |
| vec2 | kaleidoscope_uv (vec2 uv, float segments, vec2 center, float aspect) |
| Evaluates kaleidoscope uv for this shader effect. | |
| vec2 | diamond_fold (vec2 uv, vec2 center, float aspect) |
| Evaluates diamond fold for this shader effect. | |
| vec2 | fractal_fold (vec2 uv, vec2 center, float aspect, float zoom, float bass, float middle) |
| vec2 | style_warp (vec2 uv, vec2 center, float aspect, float sub, float bass, float low_mid, float middle, float presence, float high, float air, float flux) |
| vec2 | darkstar_wrap (vec2 uv, vec2 center, float aspect, float sub, float bass, float middle, float high, float flux) |
| vec3 | soft_live (vec2 uv, vec2 texel, float spread) |
| Evaluates soft live for this shader effect. | |
| vec2 | trail_transform (vec2 uv, vec2 center, float aspect, float progress, float old_sub, float old_bass, float old_middle, float old_high, float old_air) |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.14159265359 |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: darkstar-spectrum-trail-cache-aurora-crucible.
Definition in file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define CACHE_HISTORY_LAYER | ( | index | ) |
Definition at line 36 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define history_head int(ext.u3.x) |
Definition at line 13 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define iMouse ext.mouse |
Definition at line 14 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define iResolution ext.u0.zw |
Definition at line 15 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define SIZE 8 |
Definition at line 33 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define spectrum_history_head int(ext.audio_history.x) |
Definition at line 16 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define SPECTRUM_HISTORY_LAYER | ( | index | ) |
Definition at line 43 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define spectrum_history_size int(ext.audio_history.y) |
Definition at line 17 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define STYLE_ID 6 |
Definition at line 26 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| vec2 darkstar_wrap | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | sub, | ||
| float | bass, | ||
| float | middle, | ||
| float | high, | ||
| float | flux ) |
Definition at line 283 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References darkstar_wrap(), diamond(), and time_f.
Referenced by darkstar_wrap(), and main().
| vec2 diamond_fold | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect ) |
Evaluates diamond fold for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 196 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References diamond_fold().
Referenced by diamond_fold(), and main().
| vec2 fractal_fold | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | zoom, | ||
| float | bass, | ||
| float | middle ) |
Definition at line 202 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References fractal_fold(), rotate_uv(), and time_f.
Referenced by fractal_fold(), and main().
| float history_band | ( | int | index, |
| float | center, | ||
| float | width ) |
Evaluates history band for this shader effect.
| index | Input value for the calculation. |
| center | Input value for the calculation. |
| width | Input value for the calculation. |
Definition at line 128 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References history_band(), and SPECTRUM_HISTORY_LAYER.
Referenced by history_band(), and main().
| vec2 kaleidoscope_uv | ( | vec2 | uv, |
| float | segments, | ||
| vec2 | center, | ||
| float | aspect ) |
Evaluates kaleidoscope uv for this shader effect.
| uv | Input value for the calculation. |
| segments | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 180 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References kaleidoscope_uv(), and TAU.
Referenced by kaleidoscope_uv(), 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 darkstar-spectrum-trail-cache-aurora-crucible.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 353 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References darkstar_wrap(), diamond_fold(), energy(), fractal_fold(), history_band(), iMouse, iResolution, kaleido(), kaleidoscope_uv(), main(), palette(), sample_cache(), sample_live(), SIZE, soft_live(), spectrum_band(), STYLE_ID, style_warp(), time_f, tone_map(), and trail_transform().
| vec2 mirror_gradient | ( | vec2 | uv, |
| vec2 | screen_gradient ) |
Evaluates mirror gradient for this shader effect.
| uv | Input value for the calculation. |
| screen_gradient | Input value for the calculation. |
Definition at line 78 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References mirror_gradient().
Referenced by mirror_gradient(), sample_cache(), sample_cache_layer(), and sample_live().
| vec2 mirror_repeat | ( | vec2 | point | ) |
Evaluates mirror repeat for this shader effect.
| point | Input value for the calculation. |
Definition at line 68 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References mirror_repeat().
| vec3 palette | ( | float | phase | ) |
Evaluates palette for this shader effect.
| phase | Input value for the calculation. |
Definition at line 141 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| mat2 rotate_2d | ( | float | angle | ) |
Evaluates rotate 2d for this shader effect.
| angle | Input value for the calculation. |
Definition at line 57 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References rotate_2d().
| vec2 rotate_uv | ( | vec2 | uv, |
| float | angle, | ||
| vec2 | center, | ||
| float | aspect ) |
Evaluates rotate uv for this shader effect.
| uv | Input value for the calculation. |
| angle | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 166 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References rotate_2d(), and rotate_uv().
Referenced by fractal_fold(), and rotate_uv().
| vec4 sample_cache | ( | vec2 | uv, |
| int | index ) |
Evaluates sample cache for this shader effect.
| uv | Input value for the calculation. |
| index | Input value for the calculation. |
Definition at line 101 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References CACHE_HISTORY_LAYER, mirror_gradient(), mirror_repeat(), and sample_cache().
| vec4 sample_live | ( | vec2 | uv | ) |
Evaluates sample live for this shader effect.
| uv | Input value for the calculation. |
Definition at line 89 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References mirror_gradient(), mirror_repeat(), and sample_live().
Referenced by main(), sample_live(), soft_live(), and soft_sample().
| vec3 soft_live | ( | vec2 | uv, |
| vec2 | texel, | ||
| float | spread ) |
Evaluates soft live for this shader effect.
| uv | Input value for the calculation. |
| texel | Input value for the calculation. |
| spread | Input value for the calculation. |
Definition at line 308 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References sample_live(), and soft_live().
Referenced by main(), and soft_live().
| float spectrum_band | ( | float | center, |
| float | width ) |
Evaluates spectrum band for this shader effect.
| center | Input value for the calculation. |
| width | Input value for the calculation. |
Definition at line 114 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References spectrum_band().
Referenced by main(), and spectrum_band().
| vec2 style_warp | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | sub, | ||
| float | bass, | ||
| float | low_mid, | ||
| float | middle, | ||
| float | presence, | ||
| float | high, | ||
| float | air, | ||
| float | flux ) |
Definition at line 215 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References PI, rotate_2d(), style_warp(), TAU, and time_f.
Referenced by main(), and style_warp().
| vec3 tone_map | ( | vec3 | value | ) |
Evaluates tone map for this shader effect.
| value | Input value for the calculation. |
Definition at line 151 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References tone_map().
| vec2 trail_transform | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | progress, | ||
| float | old_sub, | ||
| float | old_bass, | ||
| float | old_middle, | ||
| float | old_high, | ||
| float | old_air ) |
Definition at line 317 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
References rotate_2d(), TAU, time_f, and trail_transform().
Referenced by main(), trail_transform(), and trail_transform().
| ext |
Definition at line 12 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| const float PI = 3.14159265359 |
Definition at line 49 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.
| const float TAU = 6.28318530718 |
Definition at line 50 of file darkstar-spectrum-trail-cache-aurora-crucible.frag.