Vulkan fragment shader: aura2. More...
Go to the source code of this file.
Macros | |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #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 | |
| float | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| vec3 | hsv2rgb (vec3 c) |
| Evaluates hsv2rgb 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 | neonPalette (float t) |
| Evaluates neonPalette for this shader effect. | |
| vec3 | softTone (vec3 c) |
| Evaluates softTone 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. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.1415926535897932384626433832795 |
Vulkan fragment shader: aura2.
Definition in file aura2.frag.
| #define iMouse ext.mouse |
Definition at line 17 of file aura2.frag.
| #define iResolution ext.u0.zw |
Definition at line 18 of file aura2.frag.
| #define time_f ext.u2.y |
Definition at line 19 of file aura2.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 194 of file aura2.frag.
References diamondFold().
| float diamondRadius | ( | vec2 | p | ) |
Evaluates diamondRadius for this shader effect.
| p | Input value for the calculation. |
Definition at line 182 of file aura2.frag.
References diamondRadius().
Referenced by diamondRadius(), generate_live_frame(), main(), and main().
| 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 98 of file aura2.frag.
References fractalFold(), and rotateUV().
| vec3 hsv2rgb | ( | vec3 | c | ) |
Evaluates hsv2rgb for this shader effect.
| c | Input value for the calculation. |
Definition at line 45 of file aura2.frag.
References hsv2rgb().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file aura2.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 205 of file aura2.frag.
References bloom(), diamondFold(), diamondRadius(), fractalFold(), iMouse, iResolution, main(), PI, pingPong(), preBlendColor(), reflectUV(), rotateUV(), and time_f.
| vec3 neonPalette | ( | float | t | ) |
Evaluates neonPalette for this shader effect.
| t | Input value for the calculation. |
Definition at line 112 of file aura2.frag.
References neonPalette().
Referenced by main(), main(), neonPalette(), neonPalette(), preBlendColor(), preBlendColor(), preBlendColor(), and preBlendColor().
| 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 35 of file aura2.frag.
References pingPong().
| vec3 preBlendColor | ( | vec2 | uv | ) |
Evaluates preBlendColor for this shader effect.
| uv | Input value for the calculation. |
Definition at line 164 of file aura2.frag.
References iResolution, neon(), neonPalette(), preBlendColor(), softTone(), tentBlur3(), and time_f.
Referenced by main(), main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), and samplePreColor().
| 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 76 of file aura2.frag.
References reflectUV().
Referenced by generate_live_frame(), main(), main(), reflectUV(), reflectUV(), reflectUV(), reflectUV(), and 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 59 of file aura2.frag.
References rotateUV().
Referenced by electricalFold(), fold(), fractalFold(), fractalFold(), fractalFold(), fractalFold(), fractalFold(), fractalZoom(), fractalZoom(), fractalZoom(), generate_live_frame(), largeFractalFold(), largeFractalFold(), main(), main(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), and spiralEcho().
| vec3 softTone | ( | vec3 | c | ) |
Evaluates softTone for this shader effect.
| c | Input value for the calculation. |
Definition at line 131 of file aura2.frag.
References softTone().
Referenced by main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), softTone(), and softTone().
| 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 145 of file aura2.frag.
References tentBlur3().
Referenced by generate_live_frame(), main(), main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), tentBlur3(), and tentBlur3().
| ext |
Definition at line 16 of file aura2.frag.
| const float PI = 3.1415926535897932384626433832795 |
Definition at line 27 of file aura2.frag.