Vulkan fragment shader: 4rand. 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) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec3 | NESPalette (vec3 col) |
| Evaluates NESPalette for this shader effect. | |
| vec4 | echo_loop (vec4 baseColor, int count) |
| Evaluates echo loop for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: 4rand.
Definition in file 4rand.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file 4rand.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file 4rand.frag.
| vec4 echo_loop | ( | vec4 | baseColor, |
| int | count ) |
Evaluates echo loop for this shader effect.
| baseColor | Input value for the calculation. |
| count | Input value for the calculation. |
Definition at line 49 of file 4rand.frag.
References echo_loop(), and time_f.
Referenced by echo_loop(), and main().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file 4rand.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 62 of file 4rand.frag.
References echo_loop(), main(), NESPalette(), time_f, and warp().
| vec3 NESPalette | ( | vec3 | col | ) |
Evaluates NESPalette for this shader effect.
| col | Input value for the calculation. |
Definition at line 32 of file 4rand.frag.
References NESPalette().
Referenced by main(), and NESPalette().
| ext |
Definition at line 16 of file 4rand.frag.