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

Vulkan fragment shader: auraXi2. 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.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext
const float PI = 3.1415926535897932384626433832795

Detailed Description

Vulkan fragment shader: auraXi2.

Definition in file auraXi2.frag.

Macro Definition Documentation

◆ amp

#define amp   ext.u1.y

Definition at line 17 of file auraXi2.frag.

◆ iFrame

#define iFrame   int(ext.u2.x)

Definition at line 18 of file auraXi2.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 19 of file auraXi2.frag.

◆ iMouseClick

#define iMouseClick   ext.mouse.xy

Definition at line 20 of file auraXi2.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 21 of file auraXi2.frag.

◆ iSampleRate

#define iSampleRate   ext.u2.z

Definition at line 22 of file auraXi2.frag.

◆ iTime

#define iTime   ext.u0.y

Definition at line 23 of file auraXi2.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 24 of file auraXi2.frag.

◆ uamp

#define uamp   ext.u1.y

Definition at line 25 of file auraXi2.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 65 of file auraXi2.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 auraXi2.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 58 of file auraXi2.frag.

References luma().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 183 of file auraXi2.frag.

References amp, hue(), iFrame, iMouse, iMouseClick, iResolution, iTime, luma(), main(), reinhard(), rippleDisplace(), 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 48 of file auraXi2.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 166 of file auraXi2.frag.

References reinhard().

Referenced by main(), and 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 95 of file auraXi2.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 77 of file auraXi2.frag.

References rotateUV().

◆ 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 174 of file auraXi2.frag.

References luma(), and softLimit().

Referenced by main(), 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 143 of file auraXi2.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 119 of file auraXi2.frag.

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

Variable Documentation

◆ ext

ext

Definition at line 16 of file auraXi2.frag.

◆ PI

const float PI = 3.1415926535897932384626433832795

Definition at line 40 of file auraXi2.frag.