ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
code-update-velvet-inferno.frag File Reference

Vulkan fragment shader: code-update-velvet-inferno. 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
float H (vec2 p)
 Evaluates H for this shader effect.
float N (vec2 p)
 Evaluates N for this shader effect.
float F (vec2 p)
 Evaluates F for this shader effect.
vec3 P (float x)
 Evaluates P for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext
const float T = 6.28318530718

Detailed Description

Vulkan fragment shader: code-update-velvet-inferno.

Definition in file code-update-velvet-inferno.frag.

Macro Definition Documentation

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 17 of file code-update-velvet-inferno.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 18 of file code-update-velvet-inferno.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 19 of file code-update-velvet-inferno.frag.

◆ iTime

#define iTime   ext.u0.y

Definition at line 20 of file code-update-velvet-inferno.frag.

Function Documentation

◆ F()

float F ( vec2 p)

Evaluates F for this shader effect.

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

Definition at line 53 of file code-update-velvet-inferno.frag.

References F(), and N().

◆ H()

float H ( vec2 p)

Evaluates H for this shader effect.

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

Definition at line 35 of file code-update-velvet-inferno.frag.

References H().

◆ 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 7 of file code-update-velvet-inferno.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 73 of file code-update-velvet-inferno.frag.

References amp_peak, amp_smooth, F(), iResolution, iTime, main(), P(), spectrum(), and T.

◆ N()

float N ( vec2 p)

Evaluates N for this shader effect.

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

Definition at line 43 of file code-update-velvet-inferno.frag.

References H(), and N().

Referenced by F(), main(), main(), N(), and spiralWarp().

◆ P()

vec3 P ( float x)

Evaluates P for this shader effect.

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

Definition at line 67 of file code-update-velvet-inferno.frag.

References P(), and T.

Variable Documentation

◆ ext

ext

Definition at line 16 of file code-update-velvet-inferno.frag.

◆ T

const float T = 6.28318530718

Definition at line 29 of file code-update-velvet-inferno.frag.