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

Vulkan fragment shader: ice. 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 noise (vec2 p)
 Evaluates noise for this shader effect.
float smoothNoise (vec2 p)
 Evaluates smoothNoise for this shader effect.
float fbm (vec2 p)
 Evaluates fbm for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: ice.

Definition in file ice.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 17 of file ice.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 18 of file ice.frag.

Function Documentation

◆ fbm()

float fbm ( vec2 p)

Evaluates fbm for this shader effect.

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

Definition at line 58 of file ice.frag.

References fbm(), frequency, and smoothNoise().

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 75 of file ice.frag.

References fbm(), main(), and time_f.

◆ noise()

float noise ( vec2 p)

Evaluates noise for this shader effect.

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

Definition at line 31 of file ice.frag.

References noise().

◆ smoothNoise()

float smoothNoise ( vec2 p)

Evaluates smoothNoise for this shader effect.

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

Definition at line 40 of file ice.frag.

References noise(), and smoothNoise().

Variable Documentation

◆ ext

ext

Definition at line 16 of file ice.frag.