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

Vulkan fragment shader: julia. More...

Go to the source code of this file.

Macros

#define amp   ext.u1.y
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define time_f   ext.u2.y
#define uamp   ext.u1.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 hash12 (vec2 p)
 Evaluates hash12 for this shader effect.
vec2 genSeed (float key)
 Evaluates genSeed for this shader effect.
mat2 rotate2D (float angle)
 Evaluates rotate2D for this shader effect.
vec4 drawJulia (vec2 uv, vec2 center, vec2 c)
 Evaluates drawJulia for this shader effect.
vec4 drawPulsingCircle (vec2 uv, vec2 center, float radius)
 Evaluates drawPulsingCircle for this shader effect.
void main (void)

Variables

 ext

Detailed Description

Vulkan fragment shader: julia.

Definition in file julia.frag.

Macro Definition Documentation

◆ amp

#define amp   ext.u1.y

Definition at line 17 of file julia.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 18 of file julia.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 19 of file julia.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 20 of file julia.frag.

◆ uamp

#define uamp   ext.u1.y

Definition at line 21 of file julia.frag.

Function Documentation

◆ drawJulia()

vec4 drawJulia ( vec2 uv,
vec2 center,
vec2 c )

Evaluates drawJulia for this shader effect.

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

Definition at line 89 of file julia.frag.

References drawJulia().

Referenced by drawJulia(), and main().

◆ drawPulsingCircle()

vec4 drawPulsingCircle ( vec2 uv,
vec2 center,
float radius )

Evaluates drawPulsingCircle for this shader effect.

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

Definition at line 127 of file julia.frag.

References alpha, drawPulsingCircle(), and time_f.

Referenced by drawPulsingCircle(), and main().

◆ genSeed()

vec2 genSeed ( float key)

Evaluates genSeed for this shader effect.

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

Definition at line 58 of file julia.frag.

References genSeed(), and hash12().

Referenced by genSeed(), and main().

◆ hash12()

float hash12 ( vec2 p)

Evaluates hash12 for this shader effect.

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

Definition at line 42 of file julia.frag.

References hash12().

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

References layout().

◆ main()

void main ( void )

Definition at line 157 of file julia.frag.

References drawJulia(), drawPulsingCircle(), genSeed(), hash12(), iResolution, main(), and time_f.

◆ rotate2D()

mat2 rotate2D ( float angle)

Evaluates rotate2D for this shader effect.

Parameters
angleInput value for the calculation.
Returns
Computed mat2 value.

Definition at line 73 of file julia.frag.

References rotate2D().

Variable Documentation

◆ ext

ext

Definition at line 16 of file julia.frag.