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

Vulkan fragment shader: deeps1. 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 pingPong (float x, float length)
 Evaluates pingPong for this shader effect.
vec2 polarDistort (vec2 uv)
 Evaluates polarDistort for this shader effect.
vec4 fractalColor (vec2 uv)
 Evaluates fractalColor for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext
const float PI = 3.14159265359

Detailed Description

Vulkan fragment shader: deeps1.

Definition in file deeps1.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 17 of file deeps1.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 18 of file deeps1.frag.

Function Documentation

◆ fractalColor()

vec4 fractalColor ( vec2 uv)

Evaluates fractalColor for this shader effect.

Parameters
uvInput value for the calculation.
Returns
Computed vec4 value.

Definition at line 66 of file deeps1.frag.

References fractalColor(), and time_f.

Referenced by blendMaterials(), fractalColor(), main(), and main().

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 84 of file deeps1.frag.

References fractalColor(), main(), pingPong(), polarDistort(), and time_f.

◆ pingPong()

float pingPong ( float x,
float length )

Evaluates pingPong for this shader effect.

Parameters
xInput value for the calculation.
lengthInput value for the calculation.
Returns
Computed float value.

Definition at line 34 of file deeps1.frag.

References pingPong().

◆ polarDistort()

vec2 polarDistort ( vec2 uv)

Evaluates polarDistort for this shader effect.

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

Definition at line 44 of file deeps1.frag.

References fractal(), polarDistort(), and time_f.

Referenced by main(), and polarDistort().

Variable Documentation

◆ ext

ext

Definition at line 16 of file deeps1.frag.

◆ PI

const float PI = 3.14159265359

Definition at line 26 of file deeps1.frag.