Vulkan fragment shader: af scale2 react. 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. | |
| vec4 | blur (sampler2D image, vec2 uv, vec2 resolution, float intensity) |
| Evaluates blur for this shader effect. | |
| vec4 | colorShift (vec4 col, float audioMod) |
| Evaluates colorShift for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: af scale2 react.
Definition in file af_scale2_react.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file af_scale2_react.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file af_scale2_react.frag.
| vec4 blur | ( | sampler2D | image, |
| vec2 | uv, | ||
| vec2 | resolution, | ||
| float | intensity ) |
Evaluates blur for this shader effect.
| image | Input value for the calculation. |
| uv | Input value for the calculation. |
| resolution | Input value for the calculation. |
| intensity | Input value for the calculation. |
Definition at line 46 of file af_scale2_react.frag.
References blur().
| vec4 colorShift | ( | vec4 | col, |
| float | audioMod ) |
Evaluates colorShift for this shader effect.
| col | Input value for the calculation. |
| audioMod | Input value for the calculation. |
Definition at line 80 of file af_scale2_react.frag.
References colorShift().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout(), and spectrum().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file af_scale2_react.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 93 of file af_scale2_react.frag.
References blur(), colorShift(), iResolution, main(), pingPong(), spectrum(), 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 af_scale2_react.frag.
References pingPong().
| ext |
Definition at line 16 of file af_scale2_react.frag.