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

Vulkan fragment shader: ant gem metal storm. More...

Go to the source code of this file.

Macros

#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
vec3 metalSpectrum (float t)
 Evaluates metalSpectrum for this shader effect.
float hash (vec2 p)
 Evaluates hash for this shader effect.
float noise (vec2 p)
 Evaluates noise for this shader effect.
float lightning (vec2 uv, float seed)
 Evaluates lightning for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: ant gem metal storm.

Definition in file ant_gem_metal_storm.frag.

Macro Definition Documentation

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 13 of file ant_gem_metal_storm.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 14 of file ant_gem_metal_storm.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 15 of file ant_gem_metal_storm.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 16 of file ant_gem_metal_storm.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 47 of file ant_gem_metal_storm.frag.

References hash().

◆ layout() [1/3]

layout ( location = 0)

References layout().

◆ layout() [2/3]

layout ( set = 0,
binding = 0 )

References layout(), and spectrum().

◆ layout() [3/3]

layout ( set = 0,
binding = 1,
std140  )

Definition at line 3 of file ant_gem_metal_storm.frag.

References layout().

◆ lightning()

float lightning ( vec2 uv,
float seed )

Evaluates lightning for this shader effect.

Parameters
uvInput value for the calculation.
seedInput value for the calculation.
Returns
Computed float value.

Definition at line 70 of file ant_gem_metal_storm.frag.

References hash(), lightning(), seed, and time_f.

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

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 92 of file ant_gem_metal_storm.frag.

References amp_peak, amp_smooth, iResolution, lightning(), main(), metalSpectrum(), noise(), spectrum(), and time_f.

◆ metalSpectrum()

vec3 metalSpectrum ( float t)

Evaluates metalSpectrum for this shader effect.

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

Definition at line 38 of file ant_gem_metal_storm.frag.

References metalSpectrum().

◆ noise()

float noise ( vec2 p)

Evaluates noise for this shader effect.

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

Definition at line 56 of file ant_gem_metal_storm.frag.

References hash(), and noise().

Variable Documentation

◆ ext

ext

Definition at line 12 of file ant_gem_metal_storm.frag.