Vulkan fragment shader: spiral-code-chromatic-tunnel. More...
Go to the source code of this file.
Macros | |
| #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 | |
| mat2 | rotation (float angle) |
| Evaluates rotation for this shader effect. | |
| vec2 | mirrorUV (vec2 uv) |
| Evaluates mirrorUV for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: spiral-code-chromatic-tunnel.
Definition in file spiral-code-chromatic-tunnel.frag.
| #define time_f ext.u2.y |
Definition at line 17 of file spiral-code-chromatic-tunnel.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 spiral-code-chromatic-tunnel.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 49 of file spiral-code-chromatic-tunnel.frag.
References main(), mirrorUV(), rotation(), TAU, time_f, and twist().
| vec2 mirrorUV | ( | vec2 | uv | ) |
Evaluates mirrorUV for this shader effect.
| uv | Input value for the calculation. |
Definition at line 42 of file spiral-code-chromatic-tunnel.frag.
References mirrorUV().
| mat2 rotation | ( | float | angle | ) |
Evaluates rotation for this shader effect.
| angle | Input value for the calculation. |
Definition at line 31 of file spiral-code-chromatic-tunnel.frag.
References rotation().
Referenced by fbm(), fractalSkyFold(), fractalSpiral(), main(), main(), rotation(), and turbulentFbm().
| ext |
Definition at line 16 of file spiral-code-chromatic-tunnel.frag.
| const float TAU = 6.28318530718 |
Definition at line 24 of file spiral-code-chromatic-tunnel.frag.