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

Vulkan fragment shader: auraXi3. More...

Go to the source code of this file.

Macros

#define amp   ext.u1.y
#define iFrame   int(ext.u2.x)
#define iMouse   ext.mouse
#define iMouseClick   ext.mouse.xy
#define iResolution   ext.u0.zw
#define iSampleRate   ext.u2.z
#define iTime   ext.u0.y
#define time_f   ext.u2.y
#define uamp   ext.u1.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.
float luma (vec3 c)
 Evaluates luma for this shader effect.
vec3 hue (float t)
 Evaluates hue for this shader effect.
vec2 rotateUV (vec2 uv, float angle, vec2 c, float aspect)
 Evaluates rotateUV for this shader effect.
vec2 rippleDisplace (vec2 uv, vec2 center, float aspect, float t, float drive)
 Evaluates rippleDisplace for this shader effect.
vec2 spiralTwist (vec2 uv, vec2 center, float aspect, float t, float drive)
 Evaluates spiralTwist for this shader effect.
vec3 spiralEcho (vec2 uv, vec2 center, float aspect, float t, float drive)
 Evaluates spiralEcho for this shader effect.
vec3 reinhard (vec3 x)
 Evaluates reinhard for this shader effect.
vec3 softLimit (vec3 c, float maxY)
 Evaluates softLimit for this shader effect.
vec3 satBoost (vec3 c, float s)
 Evaluates satBoost for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: auraXi3.

Definition in file auraXi3.frag.

Macro Definition Documentation

◆ amp

#define amp   ext.u1.y

Definition at line 17 of file auraXi3.frag.

◆ iFrame

#define iFrame   int(ext.u2.x)

Definition at line 18 of file auraXi3.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 19 of file auraXi3.frag.

◆ iMouseClick

#define iMouseClick   ext.mouse.xy

Definition at line 20 of file auraXi3.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 21 of file auraXi3.frag.

◆ iSampleRate

#define iSampleRate   ext.u2.z

Definition at line 22 of file auraXi3.frag.

◆ iTime

#define iTime   ext.u0.y

Definition at line 23 of file auraXi3.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 24 of file auraXi3.frag.

◆ uamp

#define uamp   ext.u1.y

Definition at line 25 of file auraXi3.frag.

Function Documentation

◆ hue()

vec3 hue ( float t)

Evaluates hue for this shader effect.

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

Definition at line 63 of file auraXi3.frag.

References hue().

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

References layout().

◆ luma()

float luma ( vec3 c)

Evaluates luma for this shader effect.

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

Definition at line 56 of file auraXi3.frag.

References luma().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 192 of file auraXi3.frag.

References amp, hue(), iFrame, iMouse, iMouseClick, iResolution, iTime, main(), reinhard(), rippleDisplace(), satBoost(), softLimit(), spiralEcho(), time_f, and uamp.

◆ 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 46 of file auraXi3.frag.

References pingPong().

◆ reinhard()

vec3 reinhard ( vec3 x)

Evaluates reinhard for this shader effect.

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

Definition at line 164 of file auraXi3.frag.

References reinhard().

◆ rippleDisplace()

vec2 rippleDisplace ( vec2 uv,
vec2 center,
float aspect,
float t,
float drive )

Evaluates rippleDisplace for this shader effect.

Parameters
uvInput value for the calculation.
centerInput value for the calculation.
aspectInput value for the calculation.
tInput value for the calculation.
driveInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 93 of file auraXi3.frag.

References luma(), ripple(), and rippleDisplace().

◆ 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 75 of file auraXi3.frag.

References rotateUV().

◆ satBoost()

vec3 satBoost ( vec3 c,
float s )

Evaluates satBoost for this shader effect.

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

Definition at line 184 of file auraXi3.frag.

References luma(), and satBoost().

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

◆ softLimit()

vec3 softLimit ( vec3 c,
float maxY )

Evaluates softLimit for this shader effect.

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

Definition at line 172 of file auraXi3.frag.

References luma(), and softLimit().

◆ spiralEcho()

vec3 spiralEcho ( vec2 uv,
vec2 center,
float aspect,
float t,
float drive )

Evaluates spiralEcho for this shader effect.

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

Definition at line 141 of file auraXi3.frag.

References rotateUV(), spiralEcho(), and spiralTwist().

◆ spiralTwist()

vec2 spiralTwist ( vec2 uv,
vec2 center,
float aspect,
float t,
float drive )

Evaluates spiralTwist for this shader effect.

Parameters
uvInput value for the calculation.
centerInput value for the calculation.
aspectInput value for the calculation.
tInput value for the calculation.
driveInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 117 of file auraXi3.frag.

References spin(), spiralTwist(), and swirl().

Variable Documentation

◆ ext

ext

Definition at line 16 of file auraXi3.frag.