ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
edge_pencil.frag File Reference

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

Detailed Description

Vulkan fragment shader: edge pencil.

Definition in file edge_pencil.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 17 of file edge_pencil.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 18 of file edge_pencil.frag.

Function Documentation

◆ layout() [1/3]

layout ( location = 0)

References layout().

◆ layout() [2/3]

layout ( set = 0,
binding = 0 )

References layout().

◆ layout() [3/3]

layout ( set = 0,
binding = 1,
std140  )

Definition at line 7 of file edge_pencil.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 74 of file edge_pencil.frag.

References main(), and pencilSketch().

◆ pencilSketch()

vec3 pencilSketch ( sampler2D tex,
vec2 uv )

Evaluates pencilSketch for this shader effect.

Parameters
texInput value for the calculation.
uvInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 41 of file edge_pencil.frag.

References iResolution, noise(), pencilSketch(), random(), and time_f.

Referenced by main(), and pencilSketch().

◆ random()

float random ( vec2 st)

Evaluates random for this shader effect.

Parameters
stInput value for the calculation.
Returns
Computed float value.

Definition at line 31 of file edge_pencil.frag.

References random().

Referenced by glitchOffset(), main(), main(), noise(), noise(), pencilSketch(), random(), random(), random(), and random().

Variable Documentation

◆ ext

ext

Definition at line 16 of file edge_pencil.frag.