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

Vulkan fragment shader: air-bowl. More...

Go to the source code of this file.

Macros

#define amp   ext.u1.y
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define seed   ext.custom_uniforms[2].z
#define time_f   ext.u2.y
#define uamp   ext.u1.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) in vec2 tc
 layout (set=0, binding=0) uniform sampler2D samp
float h1 (float n)
 Evaluates h1 for this shader effect.
vec2 h2 (vec2 p)
 Evaluates h2 for this shader effect.
vec2 rot (vec2 v, float a)
 Evaluates rot for this shader effect.
float pingPong (float x, float length)
 Evaluates pingPong for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: air-bowl.

Definition in file air-bowl.frag.

Macro Definition Documentation

◆ amp

#define amp   ext.u1.y

Definition at line 17 of file air-bowl.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 18 of file air-bowl.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 19 of file air-bowl.frag.

◆ seed

◆ time_f

#define time_f   ext.u2.y

Definition at line 21 of file air-bowl.frag.

◆ uamp

#define uamp   ext.u1.y

Definition at line 22 of file air-bowl.frag.

Function Documentation

◆ h1()

float h1 ( float n)

Evaluates h1 for this shader effect.

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

Definition at line 39 of file air-bowl.frag.

References h1(), and n().

Referenced by fastBlurRot(), h1(), main(), and main().

◆ h2()

vec2 h2 ( vec2 p)

Evaluates h2 for this shader effect.

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

Definition at line 45 of file air-bowl.frag.

References h2().

Referenced by h2(), h2(), main(), main(), and sampleLiquidSlot().

◆ 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 air-bowl.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 68 of file air-bowl.frag.

References amp, C(), h2(), iMouse, iResolution, main(), mir(), pingPong(), rot(), seed, 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 60 of file air-bowl.frag.

References pingPong().

◆ rot()

vec2 rot ( vec2 v,
float a )

Variable Documentation

◆ ext

ext

Definition at line 16 of file air-bowl.frag.