Vulkan fragment shader: snake dir. More...
Go to the source code of this file.
Macros | |
| #define | alpha ext.u0.x |
| #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 | |
| vec4 | snake1 () |
| Evaluates snake1 for this shader effect. | |
| vec4 | snake2 () |
| Evaluates snake2 for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: snake dir.
Definition in file snake_dir.frag.
| #define alpha ext.u0.x |
Definition at line 17 of file snake_dir.frag.
| #define iResolution ext.u0.zw |
Definition at line 18 of file snake_dir.frag.
| #define time_f ext.u2.y |
Definition at line 19 of file snake_dir.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 snake_dir.frag.
References layout().
| void main | ( | void | ) |
| vec4 snake1 | ( | ) |
Evaluates snake1 for this shader effect.
Definition at line 32 of file snake_dir.frag.
References iResolution, snake1(), time_f, and wave().
| vec4 snake2 | ( | ) |
Evaluates snake2 for this shader effect.
Definition at line 44 of file snake_dir.frag.
References iResolution, snake2(), time_f, and wave().
| ext |
Definition at line 16 of file snake_dir.frag.