Vulkan fragment shader: julia. More...
Go to the source code of this file.
Macros | |
| #define | amp ext.u1.y |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
| #define | uamp ext.u1.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 | hash12 (vec2 p) |
| Evaluates hash12 for this shader effect. | |
| vec2 | genSeed (float key) |
| Evaluates genSeed for this shader effect. | |
| mat2 | rotate2D (float angle) |
| Evaluates rotate2D for this shader effect. | |
| vec4 | drawJulia (vec2 uv, vec2 center, vec2 c) |
| Evaluates drawJulia for this shader effect. | |
| vec4 | drawPulsingCircle (vec2 uv, vec2 center, float radius) |
| Evaluates drawPulsingCircle for this shader effect. | |
| void | main (void) |
Variables | |
| ext | |
Vulkan fragment shader: julia.
Definition in file julia.frag.
| #define amp ext.u1.y |
Definition at line 17 of file julia.frag.
| #define iMouse ext.mouse |
Definition at line 18 of file julia.frag.
| #define iResolution ext.u0.zw |
Definition at line 19 of file julia.frag.
| #define time_f ext.u2.y |
Definition at line 20 of file julia.frag.
| #define uamp ext.u1.y |
Definition at line 21 of file julia.frag.
| vec4 drawJulia | ( | vec2 | uv, |
| vec2 | center, | ||
| vec2 | c ) |
Evaluates drawJulia for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| c | Input value for the calculation. |
Definition at line 89 of file julia.frag.
References drawJulia().
Referenced by drawJulia(), and main().
| vec4 drawPulsingCircle | ( | vec2 | uv, |
| vec2 | center, | ||
| float | radius ) |
Evaluates drawPulsingCircle for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| radius | Input value for the calculation. |
Definition at line 127 of file julia.frag.
References alpha, drawPulsingCircle(), and time_f.
Referenced by drawPulsingCircle(), and main().
| vec2 genSeed | ( | float | key | ) |
| float hash12 | ( | vec2 | p | ) |
Evaluates hash12 for this shader effect.
| p | Input value for the calculation. |
Definition at line 42 of file julia.frag.
References hash12().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file julia.frag.
References layout().
| void main | ( | void | ) |
Definition at line 157 of file julia.frag.
References drawJulia(), drawPulsingCircle(), genSeed(), hash12(), iResolution, main(), and time_f.
| mat2 rotate2D | ( | float | angle | ) |
Evaluates rotate2D for this shader effect.
| angle | Input value for the calculation. |
Definition at line 73 of file julia.frag.
References rotate2D().
| ext |
Definition at line 16 of file julia.frag.