Vulkan fragment shader: frac shader02 dmd mandella. More...
Go to the source code of this file.
Macros | |
| #define | amp ext.u1.y |
| #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 | seed ext.custom_uniforms[2].z |
| #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 | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| vec3 | hsv2rgb (vec3 c) |
| Evaluates hsv2rgb 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. | |
| vec2 | fractalFold (vec2 uv, float zoom, float t, vec2 c, float aspect) |
| Evaluates fractalFold for this shader effect. | |
| vec3 | neonPalette (float t) |
| Evaluates neonPalette for this shader effect. | |
| vec3 | softTone (vec3 c) |
| Evaluates softTone for this shader effect. | |
| vec3 | tentBlur3 (sampler2D img, vec2 uv, vec2 res) |
| Evaluates tentBlur3 for this shader effect. | |
| vec3 | preBlendColor (vec2 uv, float tSlow, float tFast, float aspect) |
| Evaluates preBlendColor for this shader effect. | |
| float | diamondRadius (vec2 p) |
| Evaluates diamondRadius for this shader effect. | |
| vec2 | diamondFold (vec2 uv, vec2 c, float aspect) |
| Evaluates diamondFold for this shader effect. | |
| vec2 | rot2 (vec2 v, float a) |
| Evaluates rot2 for this shader effect. | |
| vec2 | h2 (vec2 p) |
| Evaluates h2 for this shader effect. | |
| vec3 | limitHighlights (vec3 c) |
| Evaluates limitHighlights for this shader effect. | |
| vec2 | spiralWarp (vec2 tcIn, float tBase, float a01, out float ringMirrorOut) |
| Evaluates spiralWarp for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.1415926535897932384626433832795 |
Vulkan fragment shader: frac shader02 dmd mandella.
Definition in file frac_shader02_dmd_mandella.frag.
| #define amp ext.u1.y |
Definition at line 17 of file frac_shader02_dmd_mandella.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 18 of file frac_shader02_dmd_mandella.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 19 of file frac_shader02_dmd_mandella.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 20 of file frac_shader02_dmd_mandella.frag.
| #define amp_peak ext.u2.w |
Definition at line 21 of file frac_shader02_dmd_mandella.frag.
| #define amp_rms ext.u3.z |
Definition at line 22 of file frac_shader02_dmd_mandella.frag.
| #define amp_smooth ext.u3.w |
Definition at line 23 of file frac_shader02_dmd_mandella.frag.
| #define iamp ext.u1.z |
Definition at line 26 of file frac_shader02_dmd_mandella.frag.
| #define iMouse ext.mouse |
Definition at line 24 of file frac_shader02_dmd_mandella.frag.
| #define iResolution ext.u0.zw |
Definition at line 25 of file frac_shader02_dmd_mandella.frag.
| #define seed ext.custom_uniforms[2].z |
Definition at line 27 of file frac_shader02_dmd_mandella.frag.
| #define time_f ext.u2.y |
Definition at line 28 of file frac_shader02_dmd_mandella.frag.
| #define uamp ext.u1.y |
Definition at line 29 of file frac_shader02_dmd_mandella.frag.
| vec2 diamondFold | ( | vec2 | uv, |
| vec2 | c, | ||
| float | aspect ) |
Evaluates diamondFold for this shader effect.
| uv | Input value for the calculation. |
| c | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 218 of file frac_shader02_dmd_mandella.frag.
References diamondFold().
| float diamondRadius | ( | vec2 | p | ) |
Evaluates diamondRadius for this shader effect.
| p | Input value for the calculation. |
Definition at line 206 of file frac_shader02_dmd_mandella.frag.
References diamondRadius().
| vec2 fractalFold | ( | vec2 | uv, |
| float | zoom, | ||
| float | t, | ||
| vec2 | c, | ||
| float | aspect ) |
Evaluates fractalFold 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 119 of file frac_shader02_dmd_mandella.frag.
References amp_low, fractalFold(), and rotateUV().
| vec2 h2 | ( | vec2 | p | ) |
Evaluates h2 for this shader effect.
| p | Input value for the calculation. |
Definition at line 242 of file frac_shader02_dmd_mandella.frag.
References h2().
| vec3 hsv2rgb | ( | vec3 | c | ) |
Evaluates hsv2rgb for this shader effect.
| c | Input value for the calculation. |
Definition at line 66 of file frac_shader02_dmd_mandella.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_shader02_dmd_mandella.frag.
References layout().
| vec3 limitHighlights | ( | vec3 | c | ) |
Evaluates limitHighlights for this shader effect.
| c | Input value for the calculation. |
Definition at line 252 of file frac_shader02_dmd_mandella.frag.
References limitHighlights().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 314 of file frac_shader02_dmd_mandella.frag.
References amp, amp_high, amp_low, amp_peak, amp_smooth, bloom(), diamondFold(), diamondRadius(), fractalFold(), h2(), iMouse, iResolution, limitHighlights(), main(), mir(), PI, pingPong(), preBlendColor(), reflectUV(), ripple(), rot2(), rotateUV(), seed, spiralWarp(), time_f, and uamp.
| vec3 neonPalette | ( | float | t | ) |
Evaluates neonPalette for this shader effect.
| t | Input value for the calculation. |
Definition at line 133 of file frac_shader02_dmd_mandella.frag.
References neonPalette().
| 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 56 of file frac_shader02_dmd_mandella.frag.
References pingPong().
| vec3 preBlendColor | ( | vec2 | uv, |
| float | tSlow, | ||
| float | tFast, | ||
| float | aspect ) |
Evaluates preBlendColor for this shader effect.
| uv | Input value for the calculation. |
| tSlow | Input value for the calculation. |
| tFast | Input value for the calculation. |
| aspect | Input value for the calculation. |
Definition at line 188 of file frac_shader02_dmd_mandella.frag.
References iResolution, neon(), neonPalette(), preBlendColor(), softTone(), and tentBlur3().
| 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 97 of file frac_shader02_dmd_mandella.frag.
References reflectUV().
| vec2 rot2 | ( | vec2 | v, |
| float | a ) |
Evaluates rot2 for this shader effect.
| v | Input value for the calculation. |
| a | Input value for the calculation. |
Definition at line 232 of file frac_shader02_dmd_mandella.frag.
References rot2().
| 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 80 of file frac_shader02_dmd_mandella.frag.
References rotateUV().
| vec3 softTone | ( | vec3 | c | ) |
Evaluates softTone for this shader effect.
| c | Input value for the calculation. |
Definition at line 152 of file frac_shader02_dmd_mandella.frag.
References softTone().
| vec2 spiralWarp | ( | vec2 | tcIn, |
| float | tBase, | ||
| float | a01, | ||
| out float | ringMirrorOut ) |
Evaluates spiralWarp for this shader effect.
| tcIn | Input value for the calculation. | |
| tBase | Input value for the calculation. | |
| a01 | Input value for the calculation. | |
| [out] | ringMirrorOut | Output value produced by the calculation. |
Definition at line 267 of file frac_shader02_dmd_mandella.frag.
References iResolution, N(), spiralWarp(), and swirl().
Referenced by main(), main(), and spiralWarp().
| vec3 tentBlur3 | ( | sampler2D | img, |
| vec2 | uv, | ||
| vec2 | res ) |
Evaluates tentBlur3 for this shader effect.
| img | Input value for the calculation. |
| uv | Input value for the calculation. |
| res | Input value for the calculation. |
Definition at line 166 of file frac_shader02_dmd_mandella.frag.
References tentBlur3().
| ext |
Definition at line 16 of file frac_shader02_dmd_mandella.frag.
| const float PI = 3.1415926535897932384626433832795 |
Definition at line 48 of file frac_shader02_dmd_mandella.frag.