Vulkan fragment shader: square grid. More...
Go to the source code of this file.
Macros | |
| #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 | |
| vec4 | xor_RGB (vec4 icolor, vec4 source) |
| Evaluates xor RGB for this shader effect. | |
| vec4 | randomColor (ivec2 cell_coord) |
| Evaluates randomColor for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: square grid.
Definition in file square_grid.frag.
| #define time_f ext.u2.y |
Definition at line 17 of file square_grid.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 square_grid.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 62 of file square_grid.frag.
References main(), randomColor(), and xor_RGB().
| vec4 randomColor | ( | ivec2 | cell_coord | ) |
Evaluates randomColor for this shader effect.
| cell_coord | Input value for the calculation. |
Definition at line 49 of file square_grid.frag.
References n(), randomColor(), and time_f.
Referenced by main(), and randomColor().
| vec4 xor_RGB | ( | vec4 | icolor, |
| vec4 | source ) |
Evaluates xor RGB for this shader effect.
| icolor | Input value for the calculation. |
| source | Input value for the calculation. |
Definition at line 30 of file square_grid.frag.
References xor_RGB().
| ext |
Definition at line 16 of file square_grid.frag.