ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
metal-code-liquid-tessera.frag File Reference

Vulkan fragment shader: metal-code-liquid-tessera. More...

Go to the source code of this file.

Macros

#define amp_high   ext.audio_bands.z
#define amp_low   ext.audio_bands.x
#define amp_mid   ext.audio_bands.y
#define amp_peak   ext.u2.w
#define amp_smooth   ext.u3.w
#define iResolution   ext.u0.zw
#define time_f   ext.u2.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 hash21 (vec2 p)
 Evaluates hash21 for this shader effect.
vec2 hash22 (vec2 p)
 Evaluates hash22 for this shader effect.
vec3 voronoi (vec2 p)
 Evaluates voronoi for this shader effect.
vec2 mirrorUV (vec2 p)
 Evaluates mirrorUV for this shader effect.
vec3 spectral (float t)
 Evaluates spectral for this shader effect.
vec3 tone (vec3 x)
 Evaluates tone for this shader effect.
float tiles (vec2 p)
 Evaluates tiles for this shader effect.
vec3 normalAt (vec2 p, float e)
 Evaluates normalAt for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: metal-code-liquid-tessera.

Definition in file metal-code-liquid-tessera.frag.

Macro Definition Documentation

◆ amp_high

#define amp_high   ext.audio_bands.z

Definition at line 17 of file metal-code-liquid-tessera.frag.

◆ amp_low

#define amp_low   ext.audio_bands.x

Definition at line 18 of file metal-code-liquid-tessera.frag.

◆ amp_mid

#define amp_mid   ext.audio_bands.y

Definition at line 19 of file metal-code-liquid-tessera.frag.

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 20 of file metal-code-liquid-tessera.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 21 of file metal-code-liquid-tessera.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 22 of file metal-code-liquid-tessera.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 23 of file metal-code-liquid-tessera.frag.

Function Documentation

◆ hash21()

float hash21 ( vec2 p)

Evaluates hash21 for this shader effect.

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

Definition at line 41 of file metal-code-liquid-tessera.frag.

References hash21().

◆ hash22()

vec2 hash22 ( vec2 p)

Evaluates hash22 for this shader effect.

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

Definition at line 49 of file metal-code-liquid-tessera.frag.

References hash22().

◆ 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 metal-code-liquid-tessera.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 124 of file metal-code-liquid-tessera.frag.

References amp_high, amp_low, amp_mid, amp_peak, amp_smooth, cell(), F(), h(), iResolution, main(), mirrorUV(), n(), normalAt(), spectral(), tiles(), time_f, tone(), and voronoi().

◆ mirrorUV()

vec2 mirrorUV ( vec2 p)

Evaluates mirrorUV for this shader effect.

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

Definition at line 78 of file metal-code-liquid-tessera.frag.

References mirrorUV().

◆ normalAt()

vec3 normalAt ( vec2 p,
float e )

Evaluates normalAt for this shader effect.

Parameters
pInput value for the calculation.
eInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 116 of file metal-code-liquid-tessera.frag.

References h(), normalAt(), and tiles().

◆ spectral()

vec3 spectral ( float t)

Evaluates spectral for this shader effect.

Parameters
tInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 86 of file metal-code-liquid-tessera.frag.

References spectral().

◆ tiles()

float tiles ( vec2 p)

Evaluates tiles for this shader effect.

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

Definition at line 103 of file metal-code-liquid-tessera.frag.

References amp_low, tiles(), time_f, and voronoi().

Referenced by main(), main(), normalAt(), tileMirror(), and tiles().

◆ tone()

vec3 tone ( vec3 x)

Evaluates tone for this shader effect.

Parameters
xInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 94 of file metal-code-liquid-tessera.frag.

References tone().

◆ voronoi()

vec3 voronoi ( vec2 p)

Evaluates voronoi for this shader effect.

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

Definition at line 57 of file metal-code-liquid-tessera.frag.

References hash21(), hash22(), n(), time_f, and voronoi().

Variable Documentation

◆ ext

ext

Definition at line 16 of file metal-code-liquid-tessera.frag.