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

Vulkan fragment shader: aura2. More...

Go to the source code of this file.

Macros

#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#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.
vec3 hsv2rgb (vec3 c)
 Evaluates hsv2rgb 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 neonPalette (float t)
 Evaluates neonPalette for this shader effect.
vec3 softTone (vec3 c)
 Evaluates softTone for this shader effect.
vec3 tentBlur3 (sampler2D img, vec2 uv, vec2 res)
 Evaluates tentBlur3 for this shader effect.
vec3 preBlendColor (vec2 uv)
 Evaluates preBlendColor for this shader effect.
float diamondRadius (vec2 p)
 Evaluates diamondRadius for this shader effect.
vec2 diamondFold (vec2 uv, vec2 c, float aspect)
 Evaluates diamondFold for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext
const float PI = 3.1415926535897932384626433832795

Detailed Description

Vulkan fragment shader: aura2.

Definition in file aura2.frag.

Macro Definition Documentation

◆ iMouse

#define iMouse   ext.mouse

Definition at line 17 of file aura2.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 18 of file aura2.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 19 of file aura2.frag.

Function Documentation

◆ diamondFold()

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

Evaluates diamondFold 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 194 of file aura2.frag.

References diamondFold().

◆ diamondRadius()

float diamondRadius ( vec2 p)

Evaluates diamondRadius for this shader effect.

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

Definition at line 182 of file aura2.frag.

References diamondRadius().

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

◆ 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 98 of file aura2.frag.

References 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 45 of file aura2.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 aura2.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 205 of file aura2.frag.

References bloom(), diamondFold(), diamondRadius(), fractalFold(), iMouse, iResolution, main(), PI, pingPong(), preBlendColor(), reflectUV(), rotateUV(), and time_f.

◆ neonPalette()

vec3 neonPalette ( float t)

Evaluates neonPalette for this shader effect.

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

Definition at line 112 of file aura2.frag.

References neonPalette().

Referenced by main(), main(), neonPalette(), neonPalette(), preBlendColor(), preBlendColor(), preBlendColor(), and preBlendColor().

◆ 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 35 of file aura2.frag.

References pingPong().

◆ preBlendColor()

vec3 preBlendColor ( vec2 uv)

Evaluates preBlendColor for this shader effect.

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

Definition at line 164 of file aura2.frag.

References iResolution, neon(), neonPalette(), preBlendColor(), softTone(), tentBlur3(), and time_f.

Referenced by main(), main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), and samplePreColor().

◆ 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 76 of file aura2.frag.

References reflectUV().

Referenced by generate_live_frame(), main(), main(), reflectUV(), reflectUV(), reflectUV(), reflectUV(), and 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 59 of file aura2.frag.

References rotateUV().

Referenced by electricalFold(), fold(), fractalFold(), fractalFold(), fractalFold(), fractalFold(), fractalFold(), fractalZoom(), fractalZoom(), fractalZoom(), generate_live_frame(), largeFractalFold(), largeFractalFold(), main(), main(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), rotateUV(), and spiralEcho().

◆ softTone()

vec3 softTone ( vec3 c)

Evaluates softTone for this shader effect.

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

Definition at line 131 of file aura2.frag.

References softTone().

Referenced by main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), softTone(), and softTone().

◆ tentBlur3()

vec3 tentBlur3 ( sampler2D img,
vec2 uv,
vec2 res )

Evaluates tentBlur3 for this shader effect.

Parameters
imgInput value for the calculation.
uvInput value for the calculation.
resInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 145 of file aura2.frag.

References tentBlur3().

Referenced by generate_live_frame(), main(), main(), preBlendColor(), preBlendColor(), preBlendColor(), preBlendColor(), tentBlur3(), and tentBlur3().

Variable Documentation

◆ ext

ext

Definition at line 16 of file aura2.frag.

◆ PI

const float PI = 3.1415926535897932384626433832795

Definition at line 27 of file aura2.frag.