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

Vulkan fragment shader: bowl-by time. More...

Go to the source code of this file.

Macros

#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.
float h1 (float n)
 Evaluates h1 for this shader effect.
vec2 h2 (float n)
 Evaluates h2 for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: bowl-by time.

Definition in file bowl-by_time.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

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

◆ time_f

#define time_f   ext.u2.y

Definition at line 18 of file bowl-by_time.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 42 of file bowl-by_time.frag.

References h1(), and n().

◆ h2()

vec2 h2 ( float n)

Evaluates h2 for this shader effect.

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

Definition at line 48 of file bowl-by_time.frag.

References h2(), and n().

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 53 of file bowl-by_time.frag.

References h2(), main(), pingPong(), spin(), swirl(), 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 32 of file bowl-by_time.frag.

References pingPong().

Variable Documentation

◆ ext

ext

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