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

Vulkan fragment shader: comb3-frac-mouse. 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.
vec2 rotateUV (vec2 uv, float angle, vec2 center)
 Evaluates rotateUV for this shader effect.
vec2 reflectUV (vec2 uv, float segments, vec2 center)
 Evaluates reflectUV for this shader effect.
vec2 fractalZoom (vec2 uv, float zoom, float time, vec2 center)
 Evaluates fractalZoom for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: comb3-frac-mouse.

Definition in file comb3-frac-mouse.frag.

Macro Definition Documentation

◆ iMouse

#define iMouse   ext.mouse

Definition at line 17 of file comb3-frac-mouse.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 18 of file comb3-frac-mouse.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 19 of file comb3-frac-mouse.frag.

Function Documentation

◆ fractalZoom()

vec2 fractalZoom ( vec2 uv,
float zoom,
float time,
vec2 center )

Evaluates fractalZoom for this shader effect.

Parameters
uvInput value for the calculation.
zoomInput value for the calculation.
timeInput value for the calculation.
centerInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 79 of file comb3-frac-mouse.frag.

References fractalZoom(), pingPong(), rotateUV(), and time_f.

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

◆ 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 comb3-frac-mouse.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 90 of file comb3-frac-mouse.frag.

References fractalZoom(), iMouse, iResolution, kaleidoUV(), main(), pingPong(), reflectUV(), rotateUV(), and time_f.

◆ 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 34 of file comb3-frac-mouse.frag.

References pingPong().

◆ reflectUV()

vec2 reflectUV ( vec2 uv,
float segments,
vec2 center )

Evaluates reflectUV for this shader effect.

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

Definition at line 62 of file comb3-frac-mouse.frag.

References reflectUV().

◆ rotateUV()

vec2 rotateUV ( vec2 uv,
float angle,
vec2 center )

Evaluates rotateUV for this shader effect.

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

Definition at line 46 of file comb3-frac-mouse.frag.

References rotateUV().

Variable Documentation

◆ ext

ext

Definition at line 16 of file comb3-frac-mouse.frag.