Vulkan fragment shader: light-rings. More...
Go to the source code of this file.
Macros | |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | random (vec2 st) |
| Evaluates random for this shader effect. | |
| float | noise (vec2 st) |
| Evaluates noise for this shader effect. | |
| float | fbm (vec2 st) |
| Evaluates fbm for this shader effect. | |
| float | pingPong (float x, float length) |
| Evaluates pingPong for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: light-rings.
Definition in file light-rings.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file light-rings.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file light-rings.frag.
| float fbm | ( | vec2 | st | ) |
Evaluates fbm for this shader effect.
| st | Input value for the calculation. |
Definition at line 56 of file light-rings.frag.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file light-rings.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 82 of file light-rings.frag.
References fbm(), iResolution, lightning(), main(), pingPong(), and time_f.
| float noise | ( | vec2 | st | ) |
Evaluates noise for this shader effect.
| st | Input value for the calculation. |
Definition at line 40 of file light-rings.frag.
| float pingPong | ( | float | x, |
| float | length ) |
Evaluates pingPong for this shader effect.
| x | Input value for the calculation. |
| length | Input value for the calculation. |
Definition at line 74 of file light-rings.frag.
References pingPong().
| float random | ( | vec2 | st | ) |
Evaluates random for this shader effect.
| st | Input value for the calculation. |
Definition at line 31 of file light-rings.frag.
References random().
| ext |
Definition at line 16 of file light-rings.frag.