Vulkan fragment shader: code-update-liquid-stained-glass. 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 | |
| float | H (vec2 p) |
| Evaluates H for this shader effect. | |
| vec3 | P (float x) |
| Evaluates P for this shader effect. | |
| float | V (vec2 p, out vec2 id) |
| Evaluates V for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | T = 6.28318530718 |
Vulkan fragment shader: code-update-liquid-stained-glass.
Definition in file code-update-liquid-stained-glass.frag.
| #define amp_peak ext.u2.w |
Definition at line 17 of file code-update-liquid-stained-glass.frag.
| #define amp_smooth ext.u3.w |
Definition at line 18 of file code-update-liquid-stained-glass.frag.
| #define iResolution ext.u0.zw |
Definition at line 19 of file code-update-liquid-stained-glass.frag.
| #define iTime ext.u0.y |
Definition at line 20 of file code-update-liquid-stained-glass.frag.
| float H | ( | vec2 | p | ) |
Evaluates H for this shader effect.
| p | Input value for the calculation. |
Definition at line 35 of file code-update-liquid-stained-glass.frag.
References H().
| 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 code-update-liquid-stained-glass.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 70 of file code-update-liquid-stained-glass.frag.
References amp_peak, amp_smooth, H(), iResolution, iTime, main(), P(), spectrum(), and V().
| vec3 P | ( | float | x | ) |
Evaluates P for this shader effect.
| x | Input value for the calculation. |
Definition at line 43 of file code-update-liquid-stained-glass.frag.
| float V | ( | vec2 | p, |
| out vec2 | id ) |
Evaluates V for this shader effect.
| p | Input value for the calculation. | |
| [out] | id | Output value produced by the calculation. |
Definition at line 52 of file code-update-liquid-stained-glass.frag.
References H(), iTime, T, and V().
Referenced by main(), movingGradient(), and V().
| ext |
Definition at line 16 of file code-update-liquid-stained-glass.frag.
| const float T = 6.28318530718 |
Definition at line 29 of file code-update-liquid-stained-glass.frag.