Vulkan fragment shader: auraXi2. More...
Go to the source code of this file.
Macros | |
| #define | amp ext.u1.y |
| #define | iFrame int(ext.u2.x) |
| #define | iMouse ext.mouse |
| #define | iMouseClick ext.mouse.xy |
| #define | iResolution ext.u0.zw |
| #define | iSampleRate ext.u2.z |
| #define | iTime ext.u0.y |
| #define | time_f ext.u2.y |
| #define | uamp ext.u1.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. | |
| float | luma (vec3 c) |
| Evaluates luma for this shader effect. | |
| vec3 | hue (float t) |
| Evaluates hue for this shader effect. | |
| vec2 | rotateUV (vec2 uv, float angle, vec2 c, float aspect) |
| Evaluates rotateUV for this shader effect. | |
| vec2 | rippleDisplace (vec2 uv, vec2 center, float aspect, float t, float drive) |
| Evaluates rippleDisplace for this shader effect. | |
| vec2 | spiralTwist (vec2 uv, vec2 center, float aspect, float t, float drive) |
| Evaluates spiralTwist for this shader effect. | |
| vec3 | spiralEcho (vec2 uv, vec2 center, float aspect, float t, float drive) |
| Evaluates spiralEcho for this shader effect. | |
| vec3 | reinhard (vec3 x) |
| Evaluates reinhard for this shader effect. | |
| vec3 | softLimit (vec3 c, float maxY) |
| Evaluates softLimit for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.1415926535897932384626433832795 |
Vulkan fragment shader: auraXi2.
Definition in file auraXi2.frag.
| #define amp ext.u1.y |
Definition at line 17 of file auraXi2.frag.
| #define iFrame int(ext.u2.x) |
Definition at line 18 of file auraXi2.frag.
| #define iMouse ext.mouse |
Definition at line 19 of file auraXi2.frag.
| #define iMouseClick ext.mouse.xy |
Definition at line 20 of file auraXi2.frag.
| #define iResolution ext.u0.zw |
Definition at line 21 of file auraXi2.frag.
| #define iSampleRate ext.u2.z |
Definition at line 22 of file auraXi2.frag.
| #define iTime ext.u0.y |
Definition at line 23 of file auraXi2.frag.
| #define time_f ext.u2.y |
Definition at line 24 of file auraXi2.frag.
| #define uamp ext.u1.y |
Definition at line 25 of file auraXi2.frag.
| vec3 hue | ( | float | t | ) |
Evaluates hue for this shader effect.
| t | Input value for the calculation. |
Definition at line 65 of file auraXi2.frag.
References hue().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file auraXi2.frag.
References layout().
| float luma | ( | vec3 | c | ) |
Evaluates luma for this shader effect.
| c | Input value for the calculation. |
Definition at line 58 of file auraXi2.frag.
References luma().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 183 of file auraXi2.frag.
References amp, hue(), iFrame, iMouse, iMouseClick, iResolution, iTime, luma(), main(), reinhard(), rippleDisplace(), softLimit(), spiralEcho(), time_f, and uamp.
| 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 48 of file auraXi2.frag.
References pingPong().
| vec3 reinhard | ( | vec3 | x | ) |
Evaluates reinhard for this shader effect.
| x | Input value for the calculation. |
Definition at line 166 of file auraXi2.frag.
References reinhard().
Referenced by main(), and reinhard().
| vec2 rippleDisplace | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | t, | ||
| float | drive ) |
Evaluates rippleDisplace for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
| t | Input value for the calculation. |
| drive | Input value for the calculation. |
Definition at line 95 of file auraXi2.frag.
References luma(), ripple(), and rippleDisplace().
| 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 77 of file auraXi2.frag.
References rotateUV().
| vec3 softLimit | ( | vec3 | c, |
| float | maxY ) |
Evaluates softLimit for this shader effect.
| c | Input value for the calculation. |
| maxY | Input value for the calculation. |
Definition at line 174 of file auraXi2.frag.
References luma(), and softLimit().
Referenced by main(), and softLimit().
| vec3 spiralEcho | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | t, | ||
| float | drive ) |
Evaluates spiralEcho for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
| t | Input value for the calculation. |
| drive | Input value for the calculation. |
Definition at line 143 of file auraXi2.frag.
References rotateUV(), spiralEcho(), and spiralTwist().
| vec2 spiralTwist | ( | vec2 | uv, |
| vec2 | center, | ||
| float | aspect, | ||
| float | t, | ||
| float | drive ) |
Evaluates spiralTwist for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| aspect | Input value for the calculation. |
| t | Input value for the calculation. |
| drive | Input value for the calculation. |
Definition at line 119 of file auraXi2.frag.
References spin(), spiralTwist(), and swirl().
| ext |
Definition at line 16 of file auraXi2.frag.
| const float PI = 3.1415926535897932384626433832795 |
Definition at line 40 of file auraXi2.frag.