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

Vulkan fragment shader: frac shader01 dark. 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 iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define iamp   ext.u1.z
#define time_f   ext.u2.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) out vec4 color
 layout (set=0, binding=0) uniform sampler2D samp
float pingPong (float x, float length)
 Evaluates pingPong for this shader effect.
vec2 rotateUV (vec2 uv, float angle, vec2 c, float aspect)
 Evaluates rotateUV for this shader effect.
vec2 reflectUV (vec2 uv, float segments, vec2 c, float aspect)
 Evaluates reflectUV for this shader effect.
vec2 fractalFold (vec2 uv, float zoom, float t, vec2 c, float aspect)
 Evaluates fractalFold for this shader effect.
vec3 hsv2rgb (vec3 c)
 Evaluates hsv2rgb for this shader effect.
vec3 movingGradient (vec2 uv, vec2 c, float t, float aspect)
 Evaluates movingGradient for this shader effect.
vec2 triFold (vec2 uv, vec2 c, float aspect)
 Evaluates triFold for this shader effect.
float diamondRadius (vec2 p)
 Evaluates diamondRadius for this shader effect.
float luma (vec3 c)
 Evaluates luma for this shader effect.
vec3 bilateral9 (vec2 uv, float radiusScale, float sigma_r)
 Evaluates bilateral9 for this shader effect.
float localVar9 (vec2 uv, float radiusScale)
 Evaluates localVar9 for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: frac shader01 dark.

Definition in file frac_shader01_dark.frag.

Macro Definition Documentation

◆ amp_high

#define amp_high   ext.audio_bands.z

Definition at line 17 of file frac_shader01_dark.frag.

◆ amp_low

#define amp_low   ext.audio_bands.x

Definition at line 18 of file frac_shader01_dark.frag.

◆ amp_mid

#define amp_mid   ext.audio_bands.y

Definition at line 19 of file frac_shader01_dark.frag.

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 20 of file frac_shader01_dark.frag.

◆ amp_rms

#define amp_rms   ext.u3.z

Definition at line 21 of file frac_shader01_dark.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 22 of file frac_shader01_dark.frag.

◆ iamp

#define iamp   ext.u1.z

Definition at line 25 of file frac_shader01_dark.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 23 of file frac_shader01_dark.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 24 of file frac_shader01_dark.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 26 of file frac_shader01_dark.frag.

Function Documentation

◆ bilateral9()

vec3 bilateral9 ( vec2 uv,
float radiusScale,
float sigma_r )

Evaluates bilateral9 for this shader effect.

Parameters
uvInput value for the calculation.
radiusScaleInput value for the calculation.
sigma_rInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 186 of file frac_shader01_dark.frag.

References bilateral9(), iResolution, and luma().

Referenced by bilateral9(), bilateral9(), main(), and main().

◆ diamondRadius()

float diamondRadius ( vec2 p)

Evaluates diamondRadius for this shader effect.

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

Definition at line 167 of file frac_shader01_dark.frag.

References diamondRadius().

◆ fractalFold()

vec2 fractalFold ( vec2 uv,
float zoom,
float t,
vec2 c,
float aspect )

Evaluates fractalFold for this shader effect.

Parameters
uvInput value for the calculation.
zoomInput value for the calculation.
tInput value for the calculation.
cInput value for the calculation.
aspectInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 100 of file frac_shader01_dark.frag.

References amp_low, fractalFold(), and rotateUV().

◆ hsv2rgb()

vec3 hsv2rgb ( vec3 c)

Evaluates hsv2rgb for this shader effect.

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

Definition at line 114 of file frac_shader01_dark.frag.

References hsv2rgb().

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

References layout().

◆ localVar9()

float localVar9 ( vec2 uv,
float radiusScale )

Evaluates localVar9 for this shader effect.

Parameters
uvInput value for the calculation.
radiusScaleInput value for the calculation.
Returns
Computed float value.

Definition at line 219 of file frac_shader01_dark.frag.

References iResolution, localVar9(), luma(), and n().

Referenced by localVar9(), and main().

◆ luma()

float luma ( vec3 c)

Evaluates luma for this shader effect.

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

Definition at line 177 of file frac_shader01_dark.frag.

References luma().

◆ main()

◆ movingGradient()

vec3 movingGradient ( vec2 uv,
vec2 c,
float t,
float aspect )

Evaluates movingGradient for this shader effect.

Parameters
uvInput value for the calculation.
cInput value for the calculation.
tInput value for the calculation.
aspectInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 128 of file frac_shader01_dark.frag.

References h(), hsv2rgb(), movingGradient(), S(), and V().

◆ 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 48 of file frac_shader01_dark.frag.

References pingPong().

◆ reflectUV()

vec2 reflectUV ( vec2 uv,
float segments,
vec2 c,
float aspect )

Evaluates reflectUV for this shader effect.

Parameters
uvInput value for the calculation.
segmentsInput value for the calculation.
cInput value for the calculation.
aspectInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 78 of file frac_shader01_dark.frag.

References reflectUV().

◆ rotateUV()

vec2 rotateUV ( vec2 uv,
float angle,
vec2 c,
float aspect )

Evaluates rotateUV for this shader effect.

Parameters
uvInput value for the calculation.
angleInput value for the calculation.
cInput value for the calculation.
aspectInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 61 of file frac_shader01_dark.frag.

References rotateUV().

◆ triFold()

vec2 triFold ( vec2 uv,
vec2 c,
float aspect )

Evaluates triFold for this shader effect.

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

Definition at line 149 of file frac_shader01_dark.frag.

References triFold().

Referenced by main(), and triFold().

Variable Documentation

◆ ext

ext

Definition at line 16 of file frac_shader01_dark.frag.