Vulkan fragment shader: twist directions. 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 | |
| vec2 | twist (vec2 coord, float twistAmount, float time, float direction) |
| Evaluates twist for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: twist directions.
Definition in file twist_directions.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file twist_directions.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file twist_directions.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 twist_directions.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 43 of file twist_directions.frag.
References iResolution, main(), time_f, and twist().
| vec2 twist | ( | vec2 | coord, |
| float | twistAmount, | ||
| float | time, | ||
| float | direction ) |
Evaluates twist for this shader effect.
| coord | Input value for the calculation. |
| twistAmount | Input value for the calculation. |
| time | Input value for the calculation. |
| direction | Input value for the calculation. |
Definition at line 33 of file twist_directions.frag.
References twist().
Referenced by abyssalOpal(), cache_transform(), cache_transform_4d_opt(), effectField(), flowFbm(), maelstrom(), main(), main(), psyche_warp(), ribbon_field(), rippleBendExpand(), styleDrift(), and twist().
| ext |
Definition at line 16 of file twist_directions.frag.