Vulkan fragment shader: liquid code molten helix. 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_smooth ext.u3.w |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.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 | hash21 (vec2 p) |
| Evaluates hash21 for this shader effect. | |
| float | noise21 (vec2 p) |
| Evaluates noise21 for this shader effect. | |
| float | flowFbm (vec2 p) |
| Evaluates flowFbm for this shader effect. | |
| vec2 | mirrorUV (vec2 uv) |
| Evaluates mirrorUV for this shader effect. | |
| vec3 | heatPalette (float x) |
| Evaluates heatPalette for this shader effect. | |
| vec3 | spectral (float x) |
| Evaluates spectral for this shader effect. | |
| float | helixPotential (vec2 p) |
| Evaluates helixPotential for this shader effect. | |
| vec3 | liquidNormal (vec2 p, float e) |
| Evaluates liquidNormal for this shader effect. | |
| vec2 | helixVelocity (vec2 p) |
| Evaluates helixVelocity for this shader effect. | |
| vec3 | advectedTexture (vec2 uv, vec2 velocity, vec2 normalDirection, float split) |
| Evaluates advectedTexture for this shader effect. | |
| float | specularLobe (vec3 n, vec3 v, vec3 l, float power) |
| Evaluates specularLobe for this shader effect. | |
| vec3 | moltenLighting (vec3 base, vec3 n, vec2 p, float heat) |
| Evaluates moltenLighting for this shader effect. | |
| vec3 | toneMap (vec3 value) |
| Evaluates toneMap for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.14159265359 |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: liquid code molten helix.
Definition in file liquid_code_molten_helix.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file liquid_code_molten_helix.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file liquid_code_molten_helix.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file liquid_code_molten_helix.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file liquid_code_molten_helix.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file liquid_code_molten_helix.frag.
| #define iResolution ext.u0.zw |
Definition at line 22 of file liquid_code_molten_helix.frag.
| #define time_f ext.u2.y |
Definition at line 23 of file liquid_code_molten_helix.frag.
| vec3 advectedTexture | ( | vec2 | uv, |
| vec2 | velocity, | ||
| vec2 | normalDirection, | ||
| float | split ) |
Evaluates advectedTexture for this shader effect.
| uv | Input value for the calculation. |
| velocity | Input value for the calculation. |
| normalDirection | Input value for the calculation. |
| split | Input value for the calculation. |
Definition at line 182 of file liquid_code_molten_helix.frag.
References advectedTexture(), and mirrorUV().
Referenced by advectedTexture(), and main().
| float flowFbm | ( | vec2 | p | ) |
Evaluates flowFbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 69 of file liquid_code_molten_helix.frag.
References flowFbm(), noise21(), and twist().
Referenced by flowFbm(), helixPotential(), and main().
| float hash21 | ( | vec2 | p | ) |
Evaluates hash21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 44 of file liquid_code_molten_helix.frag.
References hash21().
| vec3 heatPalette | ( | float | x | ) |
Evaluates heatPalette for this shader effect.
| x | Input value for the calculation. |
Definition at line 95 of file liquid_code_molten_helix.frag.
References heatPalette().
Referenced by heatPalette(), and main().
| float helixPotential | ( | vec2 | p | ) |
Evaluates helixPotential for this shader effect.
| p | Input value for the calculation. |
Definition at line 119 of file liquid_code_molten_helix.frag.
References field(), flowFbm(), helixPotential(), and time_f.
Referenced by helixPotential(), liquidNormal(), and main().
| vec2 helixVelocity | ( | vec2 | p | ) |
Evaluates helixVelocity for this shader effect.
| p | Input value for the calculation. |
Definition at line 162 of file liquid_code_molten_helix.frag.
References helixVelocity().
Referenced by helixVelocity(), and main().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file liquid_code_molten_helix.frag.
References layout().
| vec3 liquidNormal | ( | vec2 | p, |
| float | e ) |
Evaluates liquidNormal for this shader effect.
| p | Input value for the calculation. |
| e | Input value for the calculation. |
Definition at line 148 of file liquid_code_molten_helix.frag.
References helixPotential(), and liquidNormal().
Referenced by liquidNormal(), and main().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 249 of file liquid_code_molten_helix.frag.
References advectedTexture(), alloy(), amp_high, amp_low, amp_peak, amp_smooth, flowFbm(), heatPalette(), helixPotential(), helixVelocity(), iResolution, liquidNormal(), luminance(), main(), mirrorUV(), moltenLighting(), n(), time_f, and toneMap().
| vec2 mirrorUV | ( | vec2 | uv | ) |
Evaluates mirrorUV for this shader effect.
| uv | Input value for the calculation. |
Definition at line 86 of file liquid_code_molten_helix.frag.
References mirrorUV().
| vec3 moltenLighting | ( | vec3 | base, |
| vec3 | n, | ||
| vec2 | p, | ||
| float | heat ) |
Evaluates moltenLighting for this shader effect.
| base | Input value for the calculation. |
| n | Input value for the calculation. |
| p | Input value for the calculation. |
| heat | Input value for the calculation. |
Definition at line 215 of file liquid_code_molten_helix.frag.
References moltenLighting(), n(), spectral(), specularLobe(), and time_f.
Referenced by main(), and moltenLighting().
| float noise21 | ( | vec2 | p | ) |
Evaluates noise21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 55 of file liquid_code_molten_helix.frag.
| vec3 spectral | ( | float | x | ) |
Evaluates spectral for this shader effect.
| x | Input value for the calculation. |
Definition at line 110 of file liquid_code_molten_helix.frag.
References spectral(), and TAU.
| float specularLobe | ( | vec3 | n, |
| vec3 | v, | ||
| vec3 | l, | ||
| float | power ) |
Evaluates specularLobe for this shader effect.
| n | Input value for the calculation. |
| v | Input value for the calculation. |
| l | Input value for the calculation. |
| power | Input value for the calculation. |
Definition at line 203 of file liquid_code_molten_helix.frag.
References n(), and specularLobe().
Referenced by moltenLighting(), and specularLobe().
| vec3 toneMap | ( | vec3 | value | ) |
Evaluates toneMap for this shader effect.
| value | Input value for the calculation. |
Definition at line 241 of file liquid_code_molten_helix.frag.
References toneMap().
| ext |
Definition at line 16 of file liquid_code_molten_helix.frag.
| const float PI = 3.14159265359 |
Definition at line 36 of file liquid_code_molten_helix.frag.
| const float TAU = 6.28318530718 |
Definition at line 37 of file liquid_code_molten_helix.frag.