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

Vulkan fragment shader: audiocolor. More...

Go to the source code of this file.

Macros

#define amp   ext.u1.y
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define time_f   ext.u2.y
#define uamp   ext.u1.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) in vec2 tc
 layout (set=0, binding=0) uniform sampler2D samp
vec2 swirl (vec2 uv, float centerRadius, float swirlAmount)
 Evaluates swirl for this shader effect.
float pingPong (float x, float length)
 Evaluates pingPong for this shader effect.
vec3 rainbow (float t)
 Evaluates rainbow for this shader effect.
void main (void)

Variables

 ext

Detailed Description

Vulkan fragment shader: audiocolor.

Definition in file audiocolor.frag.

Macro Definition Documentation

◆ amp

#define amp   ext.u1.y

Definition at line 17 of file audiocolor.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 18 of file audiocolor.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 19 of file audiocolor.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 20 of file audiocolor.frag.

◆ uamp

#define uamp   ext.u1.y

Definition at line 21 of file audiocolor.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 audiocolor.frag.

References layout().

◆ main()

void main ( void )

Definition at line 76 of file audiocolor.frag.

References amp, iResolution, main(), pingPong(), rainbow(), swirl(), time_f, and uamp.

◆ pingPong()

float pingPong ( float x,
float length )

Evaluates pingPong for this shader effect.

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

Definition at line 56 of file audiocolor.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 67 of file audiocolor.frag.

References rainbow().

◆ swirl()

vec2 swirl ( vec2 uv,
float centerRadius,
float swirlAmount )

Evaluates swirl for this shader effect.

Parameters
uvInput value for the calculation.
centerRadiusInput value for the calculation.
swirlAmountInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 40 of file audiocolor.frag.

References swirl().

Referenced by cache_transform(), main(), main(), sampleWarp(), spiralTwist(), spiralWarp(), swirl(), swirl(), swirl(), swirl(), swirl(), swirl(), and wormholeUV().

Variable Documentation

◆ ext

ext

Definition at line 16 of file audiocolor.frag.