ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
metal-code-opal-steel.frag File Reference

Vulkan fragment shader: metal-code-opal-steel. More...

Go to the source code of this file.

Macros

#define amp_high   ext.audio_bands.z
#define amp_low   ext.audio_bands.x
#define amp_mid   ext.audio_bands.y
#define amp_peak   ext.u2.w
#define amp_smooth   ext.u3.w
#define iResolution   ext.u0.zw
#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
float hash21 (vec2 p)
 Evaluates hash21 for this shader effect.
float noise21 (vec2 p)
 Evaluates noise21 for this shader effect.
float fbm (vec2 p)
 Evaluates fbm for this shader effect.
vec2 mirrorUV (vec2 p)
 Evaluates mirrorUV for this shader effect.
vec3 film (float t)
 Evaluates film for this shader effect.
vec3 aces (vec3 x)
 Evaluates aces for this shader effect.
float opal (vec2 p)
 Evaluates opal for this shader effect.
vec3 normalAt (vec2 p, float e)
 Evaluates normalAt for this shader effect.
void main (void)
 Executes the fragment shader entry point.

Variables

 ext

Detailed Description

Vulkan fragment shader: metal-code-opal-steel.

Definition in file metal-code-opal-steel.frag.

Macro Definition Documentation

◆ amp_high

#define amp_high   ext.audio_bands.z

Definition at line 17 of file metal-code-opal-steel.frag.

◆ amp_low

#define amp_low   ext.audio_bands.x

Definition at line 18 of file metal-code-opal-steel.frag.

◆ amp_mid

#define amp_mid   ext.audio_bands.y

Definition at line 19 of file metal-code-opal-steel.frag.

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 20 of file metal-code-opal-steel.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 21 of file metal-code-opal-steel.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 22 of file metal-code-opal-steel.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 23 of file metal-code-opal-steel.frag.

Function Documentation

◆ aces()

vec3 aces ( vec3 x)

Evaluates aces for this shader effect.

Parameters
xInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 90 of file metal-code-opal-steel.frag.

References aces().

◆ fbm()

float fbm ( vec2 p)

Evaluates fbm for this shader effect.

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

Definition at line 60 of file metal-code-opal-steel.frag.

References fbm(), and noise21().

◆ film()

vec3 film ( float t)

Evaluates film for this shader effect.

Parameters
tInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 82 of file metal-code-opal-steel.frag.

References film().

◆ hash21()

float hash21 ( vec2 p)

Evaluates hash21 for this shader effect.

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

Definition at line 41 of file metal-code-opal-steel.frag.

References hash21().

◆ 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 metal-code-opal-steel.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 118 of file metal-code-opal-steel.frag.

References aces(), amp_high, amp_mid, amp_peak, amp_smooth, F(), fbm(), film(), h(), iResolution, main(), mirrorUV(), n(), normalAt(), opal(), and time_f.

◆ mirrorUV()

vec2 mirrorUV ( vec2 p)

Evaluates mirrorUV for this shader effect.

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

Definition at line 74 of file metal-code-opal-steel.frag.

References mirrorUV().

◆ noise21()

float noise21 ( vec2 p)

Evaluates noise21 for this shader effect.

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

Definition at line 49 of file metal-code-opal-steel.frag.

References hash21(), and noise21().

◆ normalAt()

vec3 normalAt ( vec2 p,
float e )

Evaluates normalAt for this shader effect.

Parameters
pInput value for the calculation.
eInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 110 of file metal-code-opal-steel.frag.

References h(), normalAt(), and opal().

◆ opal()

float opal ( vec2 p)

Evaluates opal for this shader effect.

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

Definition at line 98 of file metal-code-opal-steel.frag.

References fbm(), opal(), and time_f.

Referenced by abyssalOpal(), main(), main(), normalAt(), and opal().

Variable Documentation

◆ ext

ext

Definition at line 16 of file metal-code-opal-steel.frag.