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

Vulkan fragment shader: color g. More...

Go to the source code of this file.

Macros

#define alpha   ext.u0.x
#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 hash (vec2 p)
 Evaluates hash for this shader effect.
float noise (vec2 p)
 Evaluates noise for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: color g.

Definition in file color_g.frag.

Macro Definition Documentation

◆ alpha

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 18 of file color_g.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 19 of file color_g.frag.

Function Documentation

◆ hash()

float hash ( vec2 p)

Evaluates hash for this shader effect.

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

Definition at line 44 of file color_g.frag.

References hash().

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 66 of file color_g.frag.

References alpha, blur(), iResolution, main(), noise(), pingPong(), time_f, and wave().

◆ noise()

float noise ( vec2 p)

Evaluates noise for this shader effect.

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

Definition at line 53 of file color_g.frag.

References hash(), and noise().

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

References pingPong().

Variable Documentation

◆ ext

ext

Definition at line 16 of file color_g.frag.