Vulkan fragment shader: random soul. 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) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | pingPong (float x, float len) |
| Evaluates pingPong for this shader effect. | |
| float | h (float n) |
| Evaluates h for this shader effect. | |
| vec2 | h2 (float n) |
| Evaluates h2 for this shader effect. | |
| vec3 | rainbow (float t) |
| Evaluates rainbow for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: random soul.
Definition in file random_soul.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file random_soul.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file random_soul.frag.
| float h | ( | float | n | ) |
Evaluates h for this shader effect.
| n | Input value for the calculation. |
Definition at line 38 of file random_soul.frag.
| vec2 h2 | ( | float | n | ) |
Evaluates h2 for this shader effect.
| n | Input value for the calculation. |
Definition at line 44 of file random_soul.frag.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file random_soul.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 62 of file random_soul.frag.
References h2(), iResolution, main(), rainbow(), rot(), and time_f.
| float pingPong | ( | float | x, |
| float | len ) |
Evaluates pingPong for this shader effect.
| x | Input value for the calculation. |
| len | Input value for the calculation. |
Definition at line 32 of file random_soul.frag.
References pingPong().
| vec3 rainbow | ( | float | t | ) |
Evaluates rainbow for this shader effect.
| t | Input value for the calculation. |
Definition at line 51 of file random_soul.frag.
References rainbow().
| ext |
Definition at line 16 of file random_soul.frag.