Vulkan fragment shader: halluc plasma flame. 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 | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| layout (location=0) out vec4 color | |
| vec3 | acidFlamePalette (float t) |
| Evaluates acidFlamePalette for this shader effect. | |
| vec2 | wrapUV (vec2 v) |
| Evaluates wrapUV for this shader effect. | |
| vec4 | mxTexture (sampler2D tex, vec2 uv) |
| Evaluates mxTexture for this shader effect. | |
| mat2 | rot (float a) |
| Evaluates rot for this shader effect. | |
| float | hash21 (vec2 p) |
| Evaluates hash21 for this shader effect. | |
| float | vnoise (vec2 p) |
| Evaluates vnoise for this shader effect. | |
| float | fbm (vec2 p) |
| Evaluates fbm for this shader effect. | |
| vec3 | plasmaFlame (vec2 uv, vec2 center, float t) |
| Evaluates plasmaFlame for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | iAmplitude = 1.0 |
| const float | iFrequency = 1.0 |
| const float | iBrightness = 1.0 |
| const float | iContrast = 1.15 |
| const float | iSaturation = 1.30 |
| const float | iHueShift = 0.10 |
| const float | iZoom = 1.0 |
| const float | iRotation = 0.0 |
Vulkan fragment shader: halluc plasma flame.
Definition in file halluc_plasma_flame.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file halluc_plasma_flame.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file halluc_plasma_flame.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file halluc_plasma_flame.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file halluc_plasma_flame.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file halluc_plasma_flame.frag.
| #define iMouse ext.mouse |
Definition at line 22 of file halluc_plasma_flame.frag.
| #define iResolution ext.u0.zw |
Definition at line 23 of file halluc_plasma_flame.frag.
| #define time_f ext.u2.y |
Definition at line 24 of file halluc_plasma_flame.frag.
| vec3 acidFlamePalette | ( | float | t | ) |
Evaluates acidFlamePalette for this shader effect.
| t | Input value for the calculation. |
Definition at line 56 of file halluc_plasma_flame.frag.
References acidFlamePalette().
Referenced by acidFlamePalette(), and plasmaFlame().
| float fbm | ( | vec2 | p | ) |
Evaluates fbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 123 of file halluc_plasma_flame.frag.
| float hash21 | ( | vec2 | p | ) |
Evaluates hash21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 99 of file halluc_plasma_flame.frag.
References hash21().
| 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 halluc_plasma_flame.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 171 of file halluc_plasma_flame.frag.
References amp_high, amp_low, amp_mid, amp_peak, beat(), iBrightness, iContrast, iFrequency, iMouse, iResolution, iSaturation, main(), plasmaFlame(), spectrum(), and time_f.
| vec4 mxTexture | ( | sampler2D | tex, |
| vec2 | uv ) |
Evaluates mxTexture for this shader effect.
| tex | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 81 of file halluc_plasma_flame.frag.
References mxTexture(), and wrapUV().
| vec3 plasmaFlame | ( | vec2 | uv, |
| vec2 | center, | ||
| float | t ) |
Evaluates plasmaFlame for this shader effect.
| uv | Input value for the calculation. |
| center | Input value for the calculation. |
| t | Input value for the calculation. |
Definition at line 136 of file halluc_plasma_flame.frag.
References acidFlamePalette(), fbm(), h(), iAmplitude, iContrast, iResolution, iRotation, iZoom, mxTexture(), plasmaFlame(), and rot().
Referenced by main(), and plasmaFlame().
| mat2 rot | ( | float | a | ) |
Evaluates rot for this shader effect.
| a | Input value for the calculation. |
Definition at line 92 of file halluc_plasma_flame.frag.
References rot().
| float vnoise | ( | vec2 | p | ) |
Evaluates vnoise for this shader effect.
| p | Input value for the calculation. |
Definition at line 109 of file halluc_plasma_flame.frag.
| vec2 wrapUV | ( | vec2 | v | ) |
Evaluates wrapUV for this shader effect.
| v | Input value for the calculation. |
Definition at line 74 of file halluc_plasma_flame.frag.
References wrapUV().
| ext |
Definition at line 16 of file halluc_plasma_flame.frag.
| const float iAmplitude = 1.0 |
Definition at line 41 of file halluc_plasma_flame.frag.
| const float iBrightness = 1.0 |
Definition at line 43 of file halluc_plasma_flame.frag.
| const float iContrast = 1.15 |
Definition at line 44 of file halluc_plasma_flame.frag.
| const float iFrequency = 1.0 |
Definition at line 42 of file halluc_plasma_flame.frag.
| const float iHueShift = 0.10 |
Definition at line 46 of file halluc_plasma_flame.frag.
| const float iRotation = 0.0 |
Definition at line 48 of file halluc_plasma_flame.frag.
| const float iSaturation = 1.30 |
Definition at line 45 of file halluc_plasma_flame.frag.
| const float iZoom = 1.0 |
Definition at line 47 of file halluc_plasma_flame.frag.