Vulkan fragment shader: composite-static. 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 | PI () |
| Evaluates PI for this shader effect. | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| vec3 | triadMask (vec2 uv) |
| Evaluates triadMask for this shader effect. | |
| float | scanline (vec2 uv) |
| Evaluates scanline for this shader effect. | |
| vec3 | halation (vec2 uv) |
| Evaluates halation for this shader effect. | |
| vec3 | rgb2yiq (vec3 c) |
| Evaluates rgb2yiq for this shader effect. | |
| vec3 | yiq2rgb (vec3 yIQ) |
| Evaluates yiq2rgb for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: composite-static.
Definition in file composite-static.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file composite-static.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file composite-static.frag.
| vec3 halation | ( | vec2 | uv | ) |
Evaluates halation for this shader effect.
| uv | Input value for the calculation. |
Definition at line 72 of file composite-static.frag.
References halation(), and iResolution.
Referenced by halation(), and main().
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 37 of file composite-static.frag.
References hash().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file composite-static.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 113 of file composite-static.frag.
References bloom(), halation(), hash(), iResolution, main(), n(), PI, R(), rgb2yiq(), scanline(), time_f, tri(), triadMask(), and yiq2rgb().
| float PI | ( | ) |
Evaluates PI for this shader effect.
Definition at line 30 of file composite-static.frag.
References PI.
| vec3 rgb2yiq | ( | vec3 | c | ) |
Evaluates rgb2yiq for this shader effect.
| c | Input value for the calculation. |
Definition at line 91 of file composite-static.frag.
References rgb2yiq().
| float scanline | ( | vec2 | uv | ) |
Evaluates scanline for this shader effect.
| uv | Input value for the calculation. |
Definition at line 62 of file composite-static.frag.
References iResolution, PI, and scanline().
Referenced by analogEffect(), compositeEffect(), main(), main(), and scanline().
| vec3 triadMask | ( | vec2 | uv | ) |
Evaluates triadMask for this shader effect.
| uv | Input value for the calculation. |
Definition at line 48 of file composite-static.frag.
References iResolution, and triadMask().
Referenced by main(), and triadMask().
| vec3 yiq2rgb | ( | vec3 | yIQ | ) |
Evaluates yiq2rgb for this shader effect.
| yIQ | Input value for the calculation. |
Definition at line 103 of file composite-static.frag.
References yiq2rgb().
| ext |
Definition at line 16 of file composite-static.frag.