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

Vulkan fragment shader: color peak cache-code-crystalline sonar garden. More...

Go to the source code of this file.

Macros

#define amp_high   ext.audio_bands.z
#define amp_low   ext.audio_bands.x
#define amp_mid   ext.audio_bands.y
#define amp_peak   ext.u2.w
#define amp_smooth   ext.u3.w
#define history_head   int(ext.u3.x)
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define spectrum_history_head   int(ext.audio_history.x)
#define spectrum_history_size   int(ext.audio_history.y)
#define time_f   ext.u2.y
#define SIZE   8
#define CACHE_HISTORY_LAYER(index)
#define SPECTRUM_HISTORY_LAYER(index)

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) in vec2 tc
 layout (set=0, binding=0) uniform sampler2D samp
vec2 mir (vec2 u)
 Evaluates mir for this shader effect.
mat2 R (float a)
 Evaluates R for this shader effect.
vec3 pal (float x)
 Evaluates pal for this shader effect.
vec3 aces (vec3 x)
 Evaluates aces for this shader effect.
vec4 C (int i, vec2 u)
 Evaluates C for this shader effect.
float S (int i, float f)
 Evaluates S for this shader effect.
vec2 hex (vec2 p)
 Evaluates hex for this shader effect.
float H (vec2 p, vec2 o, float b, float m)
 Evaluates H for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext
const float TAU = 6.28318530718

Detailed Description

Vulkan fragment shader: color peak cache-code-crystalline sonar garden.

Definition in file color_peak_cache-code-crystalline_sonar_garden.frag.

Macro Definition Documentation

◆ amp_high

#define amp_high   ext.audio_bands.z

◆ amp_low

#define amp_low   ext.audio_bands.x

◆ amp_mid

#define amp_mid   ext.audio_bands.y

◆ amp_peak

#define amp_peak   ext.u2.w

◆ amp_smooth

#define amp_smooth   ext.u3.w

◆ CACHE_HISTORY_LAYER

#define CACHE_HISTORY_LAYER ( index)
Value:
((history_head + (index)) % SIZE)
#define history_head
#define SIZE

Definition at line 39 of file color_peak_cache-code-crystalline_sonar_garden.frag.

◆ history_head

#define history_head   int(ext.u3.x)

◆ iMouse

#define iMouse   ext.mouse

◆ iResolution

#define iResolution   ext.u0.zw

◆ SIZE

#define SIZE   8

◆ spectrum_history_head

#define spectrum_history_head   int(ext.audio_history.x)

◆ SPECTRUM_HISTORY_LAYER

#define SPECTRUM_HISTORY_LAYER ( index)
Value:
#define spectrum_history_head
#define spectrum_history_size

Definition at line 46 of file color_peak_cache-code-crystalline_sonar_garden.frag.

◆ spectrum_history_size

#define spectrum_history_size   int(ext.audio_history.y)

◆ time_f

#define time_f   ext.u2.y

Function Documentation

◆ aces()

vec3 aces ( vec3 x)

Evaluates aces for this shader effect.

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

Definition at line 82 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References aces().

◆ C()

vec4 C ( int i,
vec2 u )

Evaluates C for this shader effect.

Parameters
iInput value for the calculation.
uInput value for the calculation.
Returns
Computed vec4 value.

Definition at line 91 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References C(), and CACHE_HISTORY_LAYER.

◆ H()

float H ( vec2 p,
vec2 o,
float b,
float m )

Evaluates H for this shader effect.

Parameters
pInput value for the calculation.
oInput value for the calculation.
bInput value for the calculation.
mInput value for the calculation.
Returns
Computed float value.

Definition at line 146 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References crystal(), H(), hex(), and time_f.

◆ hex()

vec2 hex ( vec2 p)

Evaluates hex for this shader effect.

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

Definition at line 134 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References hex().

Referenced by concept_space(), H(), hex(), main(), 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 color_peak_cache-code-crystalline_sonar_garden.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 159 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References aces(), amp_low, amp_peak, amp_smooth, C(), H(), h(), hex(), iMouse, iResolution, main(), mir(), n(), pal(), R(), S(), TAU, and time_f.

◆ mir()

vec2 mir ( vec2 u)

Evaluates mir for this shader effect.

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

Definition at line 57 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References mir().

◆ pal()

vec3 pal ( float x)

Evaluates pal for this shader effect.

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

Definition at line 74 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References pal(), and TAU.

◆ R()

mat2 R ( float a)

Evaluates R for this shader effect.

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

Definition at line 65 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References R().

◆ S()

float S ( int i,
float f )

Evaluates S for this shader effect.

Parameters
iInput value for the calculation.
fInput value for the calculation.
Returns
Computed float value.

Definition at line 114 of file color_peak_cache-code-crystalline_sonar_garden.frag.

References S(), and SPECTRUM_HISTORY_LAYER.

Variable Documentation

◆ ext

◆ TAU

const float TAU = 6.28318530718