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

Vulkan fragment shader: water hq 01 caustic shallows. 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 surface (vec2 p, float t)
 Evaluates surface for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: water hq 01 caustic shallows.

Definition in file water_hq_01_caustic_shallows.frag.

Macro Definition Documentation

◆ time_f

#define time_f   ext.u2.y

Definition at line 17 of file water_hq_01_caustic_shallows.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 water_hq_01_caustic_shallows.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 49 of file water_hq_01_caustic_shallows.frag.

References caustic(), h(), main(), n(), safeUV(), surface(), and time_f.

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

References safeUV().

Referenced by main(), refractedTexture(), and safeUV().

◆ surface()

float surface ( vec2 p,
float t )

Evaluates surface for this shader effect.

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

Definition at line 39 of file water_hq_01_caustic_shallows.frag.

References h(), and surface().

Referenced by main(), main(), ocean(), and surface().

Variable Documentation

◆ ext

ext

Definition at line 16 of file water_hq_01_caustic_shallows.frag.