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

Vulkan fragment shader: color peak cache-code-holographic bubble membrane. 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 film (float x, float v)
 Evaluates film for this shader effect.
vec3 tone (vec3 x)
 Evaluates tone 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.
float bubble (vec2 p, vec2 c, float r)
 Evaluates bubble 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-holographic bubble membrane.

Definition in file color_peak_cache-code-holographic_bubble_membrane.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-holographic_bubble_membrane.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-holographic_bubble_membrane.frag.

◆ spectrum_history_size

#define spectrum_history_size   int(ext.audio_history.y)

◆ time_f

#define time_f   ext.u2.y

Function Documentation

◆ bubble()

float bubble ( vec2 p,
vec2 c,
float r )

Evaluates bubble for this shader effect.

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

Definition at line 137 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References bubble().

Referenced by bubble(), bubble(), H(), and main().

◆ 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 92 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References C(), and CACHE_HISTORY_LAYER.

◆ film()

vec3 film ( float x,
float v )

Evaluates film for this shader effect.

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

Definition at line 75 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References film(), and TAU.

Referenced by film(), film(), film(), iridescentMetal(), main(), main(), oilSlick(), psyche_field(), and shade().

◆ 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 149 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References bubble(), H(), and time_f.

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 160 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References amp_low, amp_peak, amp_smooth, C(), film(), H(), h(), iMouse, iResolution, main(), mir(), n(), R(), S(), time_f, and tone().

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

References mir().

◆ 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-holographic_bubble_membrane.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 115 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References S(), and SPECTRUM_HISTORY_LAYER.

◆ tone()

vec3 tone ( vec3 x)

Evaluates tone for this shader effect.

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

Definition at line 83 of file color_peak_cache-code-holographic_bubble_membrane.frag.

References tone().

Variable Documentation

◆ ext

◆ TAU

const float TAU = 6.28318530718