Vulkan fragment shader: ant gem metal aurora. More...
Go to the source code of this file.
Macros | |
| #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 | |
| vec3 | metalSpectrum (float t) |
| Evaluates metalSpectrum for this shader effect. | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| float | noise (vec2 p) |
| Evaluates noise for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: ant gem metal aurora.
Definition in file ant_gem_metal_aurora.frag.
| #define amp_peak ext.u2.w |
Definition at line 13 of file ant_gem_metal_aurora.frag.
| #define amp_smooth ext.u3.w |
Definition at line 14 of file ant_gem_metal_aurora.frag.
| #define iResolution ext.u0.zw |
Definition at line 15 of file ant_gem_metal_aurora.frag.
| #define time_f ext.u2.y |
Definition at line 16 of file ant_gem_metal_aurora.frag.
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 47 of file ant_gem_metal_aurora.frag.
References hash().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout(), and spectrum().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 3 of file ant_gem_metal_aurora.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 67 of file ant_gem_metal_aurora.frag.
References amp_peak, amp_smooth, iResolution, main(), metalSpectrum(), n(), noise(), ripple(), spectrum(), and time_f.
| vec3 metalSpectrum | ( | float | t | ) |
Evaluates metalSpectrum for this shader effect.
| t | Input value for the calculation. |
Definition at line 38 of file ant_gem_metal_aurora.frag.
References metalSpectrum().
Referenced by main(), and metalSpectrum().
| float noise | ( | vec2 | p | ) |
Evaluates noise for this shader effect.
| p | Input value for the calculation. |
Definition at line 56 of file ant_gem_metal_aurora.frag.
| ext |
Definition at line 12 of file ant_gem_metal_aurora.frag.