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

Vulkan fragment shader: huei af2. More...

Go to the source code of this file.

Macros

#define iMouse   ext.mouse
#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 pingPong (float x, float l)
 Evaluates pingPong for this shader effect.
float hash (vec2 p)
 Evaluates hash for this shader effect.
float noise (vec2 p)
 Evaluates noise for this shader effect.
vec3 rainbow (float t)
 Evaluates rainbow for this shader effect.
vec2 kaleido (vec2 uv, vec2 c, float seg, vec2 ar)
 Evaluates kaleido for this shader effect.
vec2 vortex (vec2 uv, vec2 c, float t)
 Evaluates vortex for this shader effect.
vec4 blur9 (sampler2D img, vec2 uv, vec2 res)
 Evaluates blur9 for this shader effect.
float luma (vec3 c)
 Evaluates luma for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: huei af2.

Definition in file huei_af2.frag.

Macro Definition Documentation

◆ iMouse

#define iMouse   ext.mouse

Definition at line 17 of file huei_af2.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 18 of file huei_af2.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 19 of file huei_af2.frag.

Function Documentation

◆ blur9()

vec4 blur9 ( sampler2D img,
vec2 uv,
vec2 res )

Evaluates blur9 for this shader effect.

Parameters
imgInput value for the calculation.
uvInput value for the calculation.
resInput value for the calculation.
Returns
Computed vec4 value.

Definition at line 97 of file huei_af2.frag.

References blur9().

Referenced by blur9(), and main().

◆ hash()

float hash ( vec2 p)

Evaluates hash for this shader effect.

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

Definition at line 40 of file huei_af2.frag.

References hash().

◆ kaleido()

vec2 kaleido ( vec2 uv,
vec2 c,
float seg,
vec2 ar )

Evaluates kaleido for this shader effect.

Parameters
uvInput value for the calculation.
cInput value for the calculation.
segInput value for the calculation.
arInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 62 of file huei_af2.frag.

References kaleido().

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

References layout().

◆ luma()

float luma ( vec3 c)

Evaluates luma for this shader effect.

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

Definition at line 117 of file huei_af2.frag.

References luma().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 122 of file huei_af2.frag.

References beat(), blur9(), fractal(), iMouse, iResolution, kaleido(), luma(), main(), n(), noise(), rainbow(), strength, time_f, and vortex().

◆ noise()

float noise ( vec2 p)

Evaluates noise for this shader effect.

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

Definition at line 46 of file huei_af2.frag.

References hash(), and noise().

◆ pingPong()

float pingPong ( float x,
float l )

Evaluates pingPong for this shader effect.

Parameters
xInput value for the calculation.
lInput value for the calculation.
Returns
Computed float value.

Definition at line 34 of file huei_af2.frag.

References pingPong().

◆ rainbow()

vec3 rainbow ( float t)

Evaluates rainbow for this shader effect.

Parameters
tInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 52 of file huei_af2.frag.

References rainbow().

◆ vortex()

vec2 vortex ( vec2 uv,
vec2 c,
float t )

Evaluates vortex for this shader effect.

Parameters
uvInput value for the calculation.
cInput value for the calculation.
tInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 80 of file huei_af2.frag.

References vortex().

Referenced by crown_field(), effectField(), H(), main(), main(), and vortex().

Variable Documentation

◆ ext

ext

Definition at line 16 of file huei_af2.frag.