Vulkan fragment shader: tremor2. 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 | rand (vec2 co) |
| Evaluates rand for this shader effect. | |
| float | pingPong (float t, float maxT) |
| Evaluates pingPong for this shader effect. | |
| vec2 | tremorEffect (vec2 uv, float frequency, float maxAmplitude, float interval) |
| Evaluates tremorEffect for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: tremor2.
Definition in file tremor2.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file tremor2.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file tremor2.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 tremor2.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 64 of file tremor2.frag.
References frequency, main(), and tremorEffect().
| float pingPong | ( | float | t, |
| float | maxT ) |
Evaluates pingPong for this shader effect.
| t | Input value for the calculation. |
| maxT | Input value for the calculation. |
Definition at line 41 of file tremor2.frag.
References pingPong().
| float rand | ( | vec2 | co | ) |
Evaluates rand for this shader effect.
| co | Input value for the calculation. |
Definition at line 31 of file tremor2.frag.
References rand().
| vec2 tremorEffect | ( | vec2 | uv, |
| float | frequency, | ||
| float | maxAmplitude, | ||
| float | interval ) |
Evaluates tremorEffect for this shader effect.
| uv | Input value for the calculation. |
| frequency | Input value for the calculation. |
| maxAmplitude | Input value for the calculation. |
| interval | Input value for the calculation. |
Definition at line 53 of file tremor2.frag.
References frequency, pingPong(), time_f, and tremorEffect().
| ext |
Definition at line 16 of file tremor2.frag.