Vulkan fragment shader: edge pencil. 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 | random (vec2 st) |
| Evaluates random for this shader effect. | |
| vec3 | pencilSketch (sampler2D tex, vec2 uv) |
| Evaluates pencilSketch for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: edge pencil.
Definition in file edge_pencil.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file edge_pencil.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file edge_pencil.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 edge_pencil.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 74 of file edge_pencil.frag.
References main(), and pencilSketch().
| vec3 pencilSketch | ( | sampler2D | tex, |
| vec2 | uv ) |
Evaluates pencilSketch for this shader effect.
| tex | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 41 of file edge_pencil.frag.
References iResolution, noise(), pencilSketch(), random(), and time_f.
Referenced by main(), and pencilSketch().
| float random | ( | vec2 | st | ) |
Evaluates random for this shader effect.
| st | Input value for the calculation. |
Definition at line 31 of file edge_pencil.frag.
References random().
Referenced by glitchOffset(), main(), main(), noise(), noise(), pencilSketch(), random(), random(), random(), and random().
| ext |
Definition at line 16 of file edge_pencil.frag.