Vulkan fragment shader: rainbow cd curtain. More...
Go to the source code of this file.
Macros | |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
| #define | value_alpha_r ext.custom_uniforms[1].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 | hash (float n) |
| Evaluates hash for this shader effect. | |
| vec2 | random2 (vec2 st) |
| Evaluates random2 for this shader effect. | |
| vec2 | smoothRandom2 (float t) |
| Evaluates smoothRandom2 for this shader effect. | |
| vec3 | rainbow (float t, float seed) |
| Evaluates rainbow 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: rainbow cd curtain.
Definition in file rainbow_cd_curtain.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file rainbow_cd_curtain.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file rainbow_cd_curtain.frag.
| #define value_alpha_r ext.custom_uniforms[1].y |
Definition at line 19 of file rainbow_cd_curtain.frag.
| float hash | ( | float | n | ) |
Evaluates hash for this shader effect.
| n | Input value for the calculation. |
Definition at line 33 of file rainbow_cd_curtain.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 rainbow_cd_curtain.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 90 of file rainbow_cd_curtain.frag.
References expand(), iResolution, main(), pingPong(), rainbow(), smoothRandom2(), time_f, value_alpha_r, and wave().
| 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 82 of file rainbow_cd_curtain.frag.
References pingPong().
| vec3 rainbow | ( | float | t, |
| float | seed ) |
Evaluates rainbow for this shader effect.
| t | Input value for the calculation. |
| seed | Input value for the calculation. |
Definition at line 68 of file rainbow_cd_curtain.frag.
| vec2 random2 | ( | vec2 | st | ) |
Evaluates random2 for this shader effect.
| st | Input value for the calculation. |
Definition at line 42 of file rainbow_cd_curtain.frag.
References random2().
| vec2 smoothRandom2 | ( | float | t | ) |
Evaluates smoothRandom2 for this shader effect.
| t | Input value for the calculation. |
Definition at line 53 of file rainbow_cd_curtain.frag.
References rand1(), random2(), and smoothRandom2().
| ext |
Definition at line 16 of file rainbow_cd_curtain.frag.