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

Vulkan fragment shader: ant light color crystal cave. 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 iTime   ext.u0.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 crystal (float t)
 Evaluates crystal 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 ()
 Executes the fragment shader entry point.

Variables

 ext
const float TAU = 6.28318530718

Detailed Description

Vulkan fragment shader: ant light color crystal cave.

Definition in file ant_light_color_crystal_cave.frag.

Macro Definition Documentation

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 13 of file ant_light_color_crystal_cave.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 14 of file ant_light_color_crystal_cave.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 15 of file ant_light_color_crystal_cave.frag.

◆ iTime

#define iTime   ext.u0.y

Definition at line 16 of file ant_light_color_crystal_cave.frag.

Function Documentation

◆ crystal()

vec3 crystal ( float t)

Evaluates crystal for this shader effect.

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

Definition at line 40 of file ant_light_color_crystal_cave.frag.

References crystal(), and TAU.

Referenced by crown_field(), crystal(), effect_field(), H(), heightField(), main(), main(), psyche_field(), and remixDetail().

◆ hash()

float hash ( vec2 p)

Evaluates hash for this shader effect.

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

Definition at line 49 of file ant_light_color_crystal_cave.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_light_color_crystal_cave.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 69 of file ant_light_color_crystal_cave.frag.

References amp_peak, amp_smooth, crystal(), hash(), iResolution, iTime, main(), noise(), and spectrum().

◆ noise()

float noise ( vec2 p)

Evaluates noise for this shader effect.

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

Definition at line 58 of file ant_light_color_crystal_cave.frag.

References hash(), and noise().

Variable Documentation

◆ ext

ext

Definition at line 12 of file ant_light_color_crystal_cave.frag.

◆ TAU

const float TAU = 6.28318530718

Definition at line 33 of file ant_light_color_crystal_cave.frag.