Vulkan fragment shader: brokenglass. 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 | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| float | voronoi (vec2 uv) |
| Evaluates voronoi for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: brokenglass.
Definition in file brokenglass.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file brokenglass.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file brokenglass.frag.
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 32 of file brokenglass.frag.
References hash().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file brokenglass.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 61 of file brokenglass.frag.
References iResolution, main(), time_f, and voronoi().
| float voronoi | ( | vec2 | uv | ) |
| ext |
Definition at line 16 of file brokenglass.frag.