Vulkan fragment shader: aura. More...
Go to the source code of this file.
Macros | |
| #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. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.1415926535897932384626433832795 |
Vulkan fragment shader: aura.
Definition in file aura.frag.
| vec3 hsv2rgb | ( | vec3 | c | ) |
Evaluates hsv2rgb for this shader effect.
| c | Input value for the calculation. |
Definition at line 43 of file aura.frag.
References hsv2rgb().
Referenced by getColor(), hsv2rgb(), main(), main(), movingGradient(), and sacredGeometry().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 52 of file aura.frag.
References hsv2rgb(), iResolution, main(), PI, pingPong(), and time_f.
| 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 33 of file aura.frag.
References pingPong().