Vulkan fragment shader: frac mouse z. More...
Go to the source code of this file.
Macros | |
| #define | amp_high ext.audio_bands.z |
| #define | amp_low ext.audio_bands.x |
| #define | amp_mid ext.audio_bands.y |
| #define | amp_peak ext.u2.w |
| #define | amp_rms ext.u3.z |
| #define | amp_smooth ext.u3.w |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | iamp ext.u1.z |
| #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. | |
| vec2 | rotateUV (vec2 uv, float angle, vec2 c, float aspect) |
| Evaluates rotateUV for this shader effect. | |
| vec2 | reflectUV (vec2 uv, float segments, vec2 c, float aspect) |
| Evaluates reflectUV for this shader effect. | |
| vec3 | hsv2rgb (vec3 c) |
| Evaluates hsv2rgb for this shader effect. | |
| vec2 | warp (vec2 uv, float t) |
| Evaluates warp for this shader effect. | |
| vec2 | logPolarWrap (vec2 uv, vec2 c, vec2 ar, float tz, float base) |
| Evaluates logPolarWrap for this shader effect. | |
| vec2 | fold (vec2 uv, float zoom, float t, vec2 c, float aspect) |
| Evaluates fold for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: frac mouse z.
Definition in file frac_mouse_z.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file frac_mouse_z.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file frac_mouse_z.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file frac_mouse_z.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file frac_mouse_z.frag.
| #define amp_rms ext.u3.z |
Definition at line 21 of file frac_mouse_z.frag.
| #define amp_smooth ext.u3.w |
Definition at line 22 of file frac_mouse_z.frag.
| #define iamp ext.u1.z |
Definition at line 25 of file frac_mouse_z.frag.
| #define iMouse ext.mouse |
Definition at line 23 of file frac_mouse_z.frag.
| #define iResolution ext.u0.zw |
Definition at line 24 of file frac_mouse_z.frag.
| #define time_f ext.u2.y |
Definition at line 26 of file frac_mouse_z.frag.
| vec2 fold | ( | vec2 | uv, |
| float | zoom, | ||
| float | t, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates fold for this shader effect.
| uv | Input value for the calculation. |
| zoom | Input value for the calculation. |
| t | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 144 of file frac_mouse_z.frag.
References fold(), rotateUV(), and warp().
Referenced by cache_transform_4d(), crown_field(), effect_field(), energyField(), fold(), iris_warp(), main(), main(), molten(), orchid_fold(), recursive_fold(), and star_warp().
| vec3 hsv2rgb | ( | vec3 | c | ) |
Evaluates hsv2rgb for this shader effect.
| c | Input value for the calculation. |
Definition at line 96 of file frac_mouse_z.frag.
References hsv2rgb().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file frac_mouse_z.frag.
References layout().
| vec2 logPolarWrap | ( | vec2 | uv, |
| vec2 | c, | ||
| vec2 | ar, | ||
| float | tz, | ||
| float | base ) |
Evaluates logPolarWrap for this shader effect.
| uv | Input value for the calculation. |
| c | Input value for the calculation. |
| ar | Input value for the calculation. |
| tz | Input value for the calculation. |
| base | Input value for the calculation. |
Definition at line 124 of file frac_mouse_z.frag.
References logPolarWrap().
Referenced by logPolarWrap(), and main().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 157 of file frac_mouse_z.frag.
References amp_high, amp_low, amp_peak, fold(), hsv2rgb(), iMouse, iResolution, kaleido(), logPolarWrap(), main(), pingPong(), rainbow(), reflectUV(), rotateUV(), s2(), swirl(), time_f, and warp().
| 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 48 of file frac_mouse_z.frag.
References pingPong().
| vec2 reflectUV | ( | vec2 | uv, |
| float | segments, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates reflectUV for this shader effect.
| uv | Input value for the calculation. |
| segments | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 78 of file frac_mouse_z.frag.
References reflectUV().
| vec2 rotateUV | ( | vec2 | uv, |
| float | angle, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates rotateUV for this shader effect.
| uv | Input value for the calculation. |
| angle | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 61 of file frac_mouse_z.frag.
References rotateUV().
| vec2 warp | ( | vec2 | uv, |
| float | t ) |
Evaluates warp for this shader effect.
| uv | Input value for the calculation. |
| t | Input value for the calculation. |
Definition at line 108 of file frac_mouse_z.frag.
| ext |
Definition at line 16 of file frac_mouse_z.frag.