Vulkan fragment shader: fractal diamond rainbow overflow. 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 | iamp ext.u1.z |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec3 | rainbow (float t) |
| Evaluates rainbow 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, vec2 c, float aspect) |
| Evaluates fractalFold for this shader effect. | |
| vec3 | tentBlur3 (sampler2D img, vec2 uv, vec2 res) |
| Evaluates tentBlur3 for this shader effect. | |
| vec3 | preBlendColor (vec2 uv) |
| Evaluates preBlendColor for this shader effect. | |
| float | diamondRadius (vec2 p) |
| Evaluates diamondRadius for this shader effect. | |
| vec2 | diamondFold (vec2 uv, vec2 c, float aspect) |
| Evaluates diamondFold for this shader effect. | |
| vec3 | xorBlend (vec3 colorA, vec3 colorB, float s) |
| Evaluates xorBlend for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.1415926535897932384626433832795 |
Vulkan fragment shader: fractal diamond rainbow overflow.
Definition in file fractal_diamond_rainbow_overflow.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file fractal_diamond_rainbow_overflow.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file fractal_diamond_rainbow_overflow.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file fractal_diamond_rainbow_overflow.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file fractal_diamond_rainbow_overflow.frag.
| #define amp_rms ext.u3.z |
Definition at line 21 of file fractal_diamond_rainbow_overflow.frag.
| #define amp_smooth ext.u3.w |
Definition at line 22 of file fractal_diamond_rainbow_overflow.frag.
| #define iamp ext.u1.z |
Definition at line 25 of file fractal_diamond_rainbow_overflow.frag.
| #define iMouse ext.mouse |
Definition at line 23 of file fractal_diamond_rainbow_overflow.frag.
| #define iResolution ext.u0.zw |
Definition at line 24 of file fractal_diamond_rainbow_overflow.frag.
| #define time_f ext.u2.y |
Definition at line 26 of file fractal_diamond_rainbow_overflow.frag.
| 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 167 of file fractal_diamond_rainbow_overflow.frag.
References diamondFold().
| float diamondRadius | ( | vec2 | p | ) |
Evaluates diamondRadius for this shader effect.
| p | Input value for the calculation. |
Definition at line 155 of file fractal_diamond_rainbow_overflow.frag.
References diamondRadius().
| vec2 fractalFold | ( | vec2 | uv, |
| float | zoom, | ||
| float | t, | ||
| 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. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 106 of file fractal_diamond_rainbow_overflow.frag.
References amp_low, fractalFold(), and rotateUV().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file fractal_diamond_rainbow_overflow.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 198 of file fractal_diamond_rainbow_overflow.frag.
References amp_high, amp_low, amp_mid, amp_peak, amp_rms, amp_smooth, diamondFold(), diamondRadius(), fractalFold(), iMouse, iResolution, main(), PI, preBlendColor(), reflectUV(), rotateUV(), time_f, wave(), and xorBlend().
| vec3 preBlendColor | ( | vec2 | uv | ) |
Evaluates preBlendColor for this shader effect.
| uv | Input value for the calculation. |
Definition at line 141 of file fractal_diamond_rainbow_overflow.frag.
References iResolution, PI, preBlendColor(), rainbow(), tentBlur3(), time_f, and wave().
| vec3 rainbow | ( | float | t | ) |
Evaluates rainbow for this shader effect.
| t | Input value for the calculation. |
Definition at line 51 of file fractal_diamond_rainbow_overflow.frag.
References rainbow().
| 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 84 of file fractal_diamond_rainbow_overflow.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 67 of file fractal_diamond_rainbow_overflow.frag.
References rotateUV().
| vec3 tentBlur3 | ( | sampler2D | img, |
| vec2 | uv, | ||
| vec2 | res ) |
Evaluates tentBlur3 for this shader effect.
| img | Input value for the calculation. |
| uv | Input value for the calculation. |
| res | Input value for the calculation. |
Definition at line 122 of file fractal_diamond_rainbow_overflow.frag.
References tentBlur3().
| vec3 xorBlend | ( | vec3 | colorA, |
| vec3 | colorB, | ||
| float | s ) |
Evaluates xorBlend for this shader effect.
| colorA | Input value for the calculation. |
| colorB | Input value for the calculation. |
| s | Input value for the calculation. |
Definition at line 183 of file fractal_diamond_rainbow_overflow.frag.
References xorBlend().
| ext |
Definition at line 16 of file fractal_diamond_rainbow_overflow.frag.
| const float PI = 3.1415926535897932384626433832795 |
Definition at line 42 of file fractal_diamond_rainbow_overflow.frag.