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

Vulkan fragment shader: tremor2. 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 rand (vec2 co)
 Evaluates rand for this shader effect.
float pingPong (float t, float maxT)
 Evaluates pingPong for this shader effect.
vec2 tremorEffect (vec2 uv, float frequency, float maxAmplitude, float interval)
 Evaluates tremorEffect for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: tremor2.

Definition in file tremor2.frag.

Macro Definition Documentation

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 17 of file tremor2.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 18 of file tremor2.frag.

Function Documentation

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

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 64 of file tremor2.frag.

References frequency, main(), and tremorEffect().

◆ pingPong()

float pingPong ( float t,
float maxT )

Evaluates pingPong for this shader effect.

Parameters
tInput value for the calculation.
maxTInput value for the calculation.
Returns
Computed float value.

Definition at line 41 of file tremor2.frag.

References pingPong().

◆ rand()

float rand ( vec2 co)

Evaluates rand for this shader effect.

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

Definition at line 31 of file tremor2.frag.

References rand().

◆ tremorEffect()

vec2 tremorEffect ( vec2 uv,
float frequency,
float maxAmplitude,
float interval )

Evaluates tremorEffect for this shader effect.

Parameters
uvInput value for the calculation.
frequencyInput value for the calculation.
maxAmplitudeInput value for the calculation.
intervalInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 53 of file tremor2.frag.

References frequency, pingPong(), time_f, and tremorEffect().

Variable Documentation

◆ ext

ext

Definition at line 16 of file tremor2.frag.