Vulkan fragment shader: metal-code-plasma-alloy. 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 | fbm (vec2 p) |
| Evaluates fbm for this shader effect. | |
| vec2 | mirrorUV (vec2 p) |
| Evaluates mirrorUV for this shader effect. | |
| vec3 | plasma (float t) |
| Evaluates plasma for this shader effect. | |
| vec3 | aces (vec3 x) |
| Evaluates aces for this shader effect. | |
| float | alloy (vec2 p) |
| Evaluates alloy for this shader effect. | |
| vec3 | normalAt (vec2 p, float e) |
| Evaluates normalAt for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: metal-code-plasma-alloy.
Definition in file metal-code-plasma-alloy.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file metal-code-plasma-alloy.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file metal-code-plasma-alloy.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file metal-code-plasma-alloy.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file metal-code-plasma-alloy.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file metal-code-plasma-alloy.frag.
| #define iResolution ext.u0.zw |
Definition at line 22 of file metal-code-plasma-alloy.frag.
| #define time_f ext.u2.y |
Definition at line 23 of file metal-code-plasma-alloy.frag.
| vec3 aces | ( | vec3 | x | ) |
Evaluates aces for this shader effect.
| x | Input value for the calculation. |
Definition at line 90 of file metal-code-plasma-alloy.frag.
References aces().
| float alloy | ( | vec2 | p | ) |
Evaluates alloy for this shader effect.
| p | Input value for the calculation. |
Definition at line 98 of file metal-code-plasma-alloy.frag.
References alloy(), fbm(), and time_f.
Referenced by alloy(), main(), and normalAt().
| float fbm | ( | vec2 | p | ) |
Evaluates fbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 60 of file metal-code-plasma-alloy.frag.
| float hash21 | ( | vec2 | p | ) |
Evaluates hash21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 41 of file metal-code-plasma-alloy.frag.
References hash21().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file metal-code-plasma-alloy.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 119 of file metal-code-plasma-alloy.frag.
References aces(), alloy(), amp_high, amp_mid, amp_peak, amp_smooth, corona(), F(), h(), iResolution, main(), mirrorUV(), n(), normalAt(), plasma(), and time_f.
| vec2 mirrorUV | ( | vec2 | p | ) |
Evaluates mirrorUV for this shader effect.
| p | Input value for the calculation. |
Definition at line 74 of file metal-code-plasma-alloy.frag.
References mirrorUV().
| float noise21 | ( | vec2 | p | ) |
Evaluates noise21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 49 of file metal-code-plasma-alloy.frag.
| vec3 normalAt | ( | vec2 | p, |
| float | e ) |
Evaluates normalAt for this shader effect.
| p | Input value for the calculation. |
| e | Input value for the calculation. |
Definition at line 111 of file metal-code-plasma-alloy.frag.
References alloy(), h(), and normalAt().
| vec3 plasma | ( | float | t | ) |
Evaluates plasma for this shader effect.
| t | Input value for the calculation. |
Definition at line 82 of file metal-code-plasma-alloy.frag.
References plasma().
Referenced by crown_field(), main(), main(), plasma(), and trailUV().
| ext |
Definition at line 16 of file metal-code-plasma-alloy.frag.