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

Vulkan fragment shader: edge black. More...

Go to the source code of this file.

Macros

#define iResolution   ext.u0.zw

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) out vec4 color
 layout (set=0, binding=0) uniform sampler2D samp
vec3 edgeDetection (sampler2D tex, vec2 uv)
 Evaluates edgeDetection for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: edge black.

Definition in file edge_black.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 17 of file edge_black.frag.

Function Documentation

◆ edgeDetection()

vec3 edgeDetection ( sampler2D tex,
vec2 uv )

Evaluates edgeDetection for this shader effect.

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

Definition at line 30 of file edge_black.frag.

References edgeDetection(), and iResolution.

Referenced by edgeDetection(), and main().

◆ 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_black.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 59 of file edge_black.frag.

References edgeDetection(), and main().

Variable Documentation

◆ ext

ext

Definition at line 16 of file edge_black.frag.