ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag File Reference

Vulkan fragment shader: peak inversion texture-code cache-3-chrome aurora maze. 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_rms   ext.u3.z
#define amp_smooth   ext.u3.w
#define history_head   int(ext.u3.x)
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define slider1   ext.custom_uniforms[5].x
#define slider2   ext.custom_uniforms[5].y
#define slider3   ext.custom_uniforms[5].z
#define slider4   ext.custom_uniforms[5].w
#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 FX_MODE   4
#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
mat2 rotate2D (float a)
 Evaluates rotate2D for this shader effect.
vec2 mirrorUV (vec2 uv)
 Evaluates mirrorUV for this shader effect.
vec2 seamlessUV (vec2 uv)
 Evaluates seamlessUV for this shader effect.
float hash21 (vec2 p)
 Evaluates hash21 for this shader effect.
float noise21 (vec2 p)
 Evaluates noise21 for this shader effect.
float fbm (vec2 p)
 Evaluates fbm for this shader effect.
vec2 hexCell (vec2 p)
 Evaluates hexCell for this shader effect.
vec2 kaleido (vec2 p, float sides)
 Evaluates kaleido for this shader effect.
vec3 palette (float x)
 Evaluates palette for this shader effect.
vec3 aces (vec3 x)
 Evaluates aces for this shader effect.
vec4 sampleCache (int index, vec2 uv)
 Evaluates sampleCache for this shader effect.
float sampleHistory (int index, float frequency)
 Evaluates sampleHistory for this shader effect.
float effectField (vec2 p, vec2 origin, float bass, float mid, float treble)
 Evaluates effectField for this shader effect.
vec2 feedbackTransform (vec2 uv, vec2 center, float generation, float bass, float mid, float treble, vec2 normalFlow)
float modeOverlay (vec2 p, float height, float audio)
 Evaluates modeOverlay for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext
const float TAU = 6.28318530718
const int MODE = FX_MODE

Detailed Description

Vulkan fragment shader: peak inversion texture-code cache-3-chrome aurora maze.

Definition in file peak_inversion_texture-code_cache-3-chrome_aurora_maze.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_rms

#define amp_rms   ext.u3.z

◆ 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 46 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

◆ FX_MODE

#define FX_MODE   4

◆ history_head

#define history_head   int(ext.u3.x)

◆ iMouse

#define iMouse   ext.mouse

◆ iResolution

#define iResolution   ext.u0.zw

◆ SIZE

#define SIZE   8

◆ slider1

#define slider1   ext.custom_uniforms[5].x

◆ slider2

#define slider2   ext.custom_uniforms[5].y

◆ slider3

#define slider3   ext.custom_uniforms[5].z

◆ slider4

#define slider4   ext.custom_uniforms[5].w

◆ 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 53 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.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 204 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References aces().

◆ effectField()

float effectField ( vec2 p,
vec2 origin,
float bass,
float mid,
float treble )

Evaluates effectField for this shader effect.

Parameters
pInput value for the calculation.
originInput value for the calculation.
bassInput value for the calculation.
midInput value for the calculation.
trebleInput value for the calculation.
Returns
Computed float value.

Definition at line 263 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References amp_smooth, aurora(), bloom(), cell(), effectField(), fbm(), field(), h(), hexCell(), interference(), kaleido(), MODE, ribbons(), ripple(), rotate2D(), slider1, slider2, time_f, twist(), and vortex().

◆ fbm()

float fbm ( vec2 p)

Evaluates fbm for this shader effect.

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

Definition at line 134 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References fbm(), noise21(), and rotate2D().

◆ feedbackTransform()

vec2 feedbackTransform ( vec2 uv,
vec2 center,
float generation,
float bass,
float mid,
float treble,
vec2 normalFlow )

◆ hash21()

float hash21 ( vec2 p)

Evaluates hash21 for this shader effect.

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

Definition at line 112 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References hash21().

◆ hexCell()

vec2 hexCell ( vec2 p)

Evaluates hexCell for this shader effect.

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

Definition at line 150 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References hexCell().

◆ kaleido()

vec2 kaleido ( vec2 p,
float sides )

Evaluates kaleido for this shader effect.

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

Definition at line 163 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References kaleido(), and TAU.

◆ 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  )

◆ main()

◆ mirrorUV()

vec2 mirrorUV ( vec2 uv)

Evaluates mirrorUV for this shader effect.

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

Definition at line 88 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References mirrorUV().

◆ modeOverlay()

float modeOverlay ( vec2 p,
float height,
float audio )

Evaluates modeOverlay for this shader effect.

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

Definition at line 445 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References MODE, modeOverlay(), and time_f.

Referenced by main(), and modeOverlay().

◆ noise21()

float noise21 ( vec2 p)

Evaluates noise21 for this shader effect.

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

Definition at line 121 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References cell(), hash21(), and noise21().

◆ palette()

vec3 palette ( float x)

Evaluates palette for this shader effect.

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

Definition at line 175 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References MODE, palette(), and TAU.

◆ rotate2D()

mat2 rotate2D ( float a)

Evaluates rotate2D for this shader effect.

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

Definition at line 77 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References rotate2D().

◆ sampleCache()

vec4 sampleCache ( int index,
vec2 uv )

Evaluates sampleCache for this shader effect.

Parameters
indexInput value for the calculation.
uvInput value for the calculation.
Returns
Computed vec4 value.

Definition at line 214 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References CACHE_HISTORY_LAYER, and sampleCache().

◆ sampleHistory()

float sampleHistory ( int index,
float frequency )

Evaluates sampleHistory for this shader effect.

Parameters
indexInput value for the calculation.
frequencyInput value for the calculation.
Returns
Computed float value.

Definition at line 238 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References frequency, sampleHistory(), and SPECTRUM_HISTORY_LAYER.

◆ seamlessUV()

vec2 seamlessUV ( vec2 uv)

Evaluates seamlessUV for this shader effect.

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

Definition at line 99 of file peak_inversion_texture-code_cache-3-chrome_aurora_maze.frag.

References mirrorUV(), and seamlessUV().

Referenced by differenceTrailCore(), main(), sampleCache(), and seamlessUV().

Variable Documentation

◆ ext

◆ MODE

const int MODE = FX_MODE

◆ TAU

const float TAU = 6.28318530718