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

Vulkan fragment shader: water hq 06 pool caustics. More...

Go to the source code of this file.

Macros

#define time_f   ext.u2.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (location=0) in vec2 tc
 layout (set=0, binding=0) uniform sampler2D samp
vec2 safeUV (vec2 p)
 Evaluates safeUV for this shader effect.
float caustic (vec2 p)
 Evaluates caustic for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: water hq 06 pool caustics.

Definition in file water_hq_06_pool_caustics.frag.

Macro Definition Documentation

◆ time_f

#define time_f   ext.u2.y

Definition at line 17 of file water_hq_06_pool_caustics.frag.

Function Documentation

◆ caustic()

float caustic ( vec2 p)

Evaluates caustic for this shader effect.

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

Definition at line 37 of file water_hq_06_pool_caustics.frag.

References caustic(), and time_f.

Referenced by abyssalOpal(), caustic(), 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 water_hq_06_pool_caustics.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 49 of file water_hq_06_pool_caustics.frag.

References caustic(), main(), and safeUV().

◆ safeUV()

vec2 safeUV ( vec2 p)

Evaluates safeUV for this shader effect.

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

Definition at line 29 of file water_hq_06_pool_caustics.frag.

References safeUV().

Variable Documentation

◆ ext

ext

Definition at line 16 of file water_hq_06_pool_caustics.frag.