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

Vulkan fragment shader: ant spectrum diamond echo. More...

Go to the source code of this file.

Macros

#define amp_peak   ext.u2.w
#define amp_smooth   ext.u3.w
#define iResolution   ext.u0.zw
#define iTime   ext.u0.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) in vec2 tc
 layout (set=0, binding=0) uniform sampler2D samp
vec3 rainbow (float t)
 Evaluates rainbow for this shader effect.
mat2 rot (float a)
 Evaluates rot for this shader effect.
vec2 diamondFold (vec2 p)
 Evaluates diamondFold for this shader effect.
vec2 mirror (vec2 uv)
 Evaluates mirror for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext
const float PI = 3.14159265

Detailed Description

Vulkan fragment shader: ant spectrum diamond echo.

Definition in file ant_spectrum_diamond_echo.frag.

Macro Definition Documentation

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 13 of file ant_spectrum_diamond_echo.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 14 of file ant_spectrum_diamond_echo.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 15 of file ant_spectrum_diamond_echo.frag.

◆ iTime

#define iTime   ext.u0.y

Definition at line 16 of file ant_spectrum_diamond_echo.frag.

Function Documentation

◆ diamondFold()

vec2 diamondFold ( vec2 p)

Evaluates diamondFold for this shader effect.

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

Definition at line 59 of file ant_spectrum_diamond_echo.frag.

References diamondFold().

Referenced by diamondFold(), diamondFold(), diamondFold(), generate_live_frame(), main(), and main().

◆ layout() [1/3]

layout ( location = 0)

References layout().

◆ layout() [2/3]

layout ( set = 0,
binding = 0 )

References layout(), and spectrum().

◆ layout() [3/3]

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

Definition at line 3 of file ant_spectrum_diamond_echo.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 78 of file ant_spectrum_diamond_echo.frag.

References amp_peak, diamondFold(), iResolution, iTime, main(), mirror(), rainbow(), rot(), and spectrum().

◆ mirror()

vec2 mirror ( vec2 uv)

Evaluates mirror for this shader effect.

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

Definition at line 70 of file ant_spectrum_diamond_echo.frag.

References mirror().

◆ rainbow()

vec3 rainbow ( float t)

Evaluates rainbow for this shader effect.

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

Definition at line 40 of file ant_spectrum_diamond_echo.frag.

References rainbow().

◆ rot()

mat2 rot ( float a)

Evaluates rot for this shader effect.

Parameters
aInput value for the calculation.
Returns
Computed mat2 value.

Definition at line 49 of file ant_spectrum_diamond_echo.frag.

References rot().

Variable Documentation

◆ ext

ext

Definition at line 12 of file ant_spectrum_diamond_echo.frag.

◆ PI

const float PI = 3.14159265

Definition at line 33 of file ant_spectrum_diamond_echo.frag.