Vulkan fragment shader: ant light color spectral drain. 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 | iTime ext.u0.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 | spectral (float t) |
| Evaluates spectral for this shader effect. | |
| vec2 | mirrorUV (vec2 uv) |
| Evaluates mirrorUV for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
Vulkan fragment shader: ant light color spectral drain.
Definition in file ant_light_color_spectral_drain.frag.
| #define amp_peak ext.u2.w |
Definition at line 13 of file ant_light_color_spectral_drain.frag.
| #define amp_smooth ext.u3.w |
Definition at line 14 of file ant_light_color_spectral_drain.frag.
| #define iResolution ext.u0.zw |
Definition at line 15 of file ant_light_color_spectral_drain.frag.
| #define iTime ext.u0.y |
Definition at line 16 of file ant_light_color_spectral_drain.frag.
| 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_light_color_spectral_drain.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 57 of file ant_light_color_spectral_drain.frag.
References amp_peak, amp_smooth, iResolution, iTime, main(), mirrorUV(), spectral(), spectrum(), and TAU.
| vec2 mirrorUV | ( | vec2 | uv | ) |
Evaluates mirrorUV for this shader effect.
| uv | Input value for the calculation. |
Definition at line 49 of file ant_light_color_spectral_drain.frag.
References mirrorUV().
| vec3 spectral | ( | float | t | ) |
Evaluates spectral for this shader effect.
| t | Input value for the calculation. |
Definition at line 40 of file ant_light_color_spectral_drain.frag.
References spectral(), and TAU.
Referenced by main(), main(), metalLight(), moltenLighting(), spectral(), and spectral().
| ext |
Definition at line 12 of file ant_light_color_spectral_drain.frag.
| const float TAU = 6.28318530718 |
Definition at line 33 of file ant_light_color_spectral_drain.frag.