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 | |
Vulkan fragment shader: metal-code-opal-steel.
Definition in file metal-code-opal-steel.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 17 of file metal-code-opal-steel.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 18 of file metal-code-opal-steel.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 19 of file metal-code-opal-steel.frag.
| #define amp_peak ext.u2.w |
Definition at line 20 of file metal-code-opal-steel.frag.
| #define amp_smooth ext.u3.w |
Definition at line 21 of file metal-code-opal-steel.frag.
| #define iResolution ext.u0.zw |
Definition at line 22 of file metal-code-opal-steel.frag.
| #define time_f ext.u2.y |
Definition at line 23 of file metal-code-opal-steel.frag.
| vec3 aces | ( | vec3 | x | ) |
Evaluates aces for this shader effect.
| x | Input value for the calculation. |
Definition at line 90 of file metal-code-opal-steel.frag.
References aces().
| float fbm | ( | vec2 | p | ) |
Evaluates fbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 60 of file metal-code-opal-steel.frag.
| vec3 film | ( | float | t | ) |
Evaluates film for this shader effect.
| t | Input value for the calculation. |
Definition at line 82 of file metal-code-opal-steel.frag.
References film().
| float hash21 | ( | vec2 | p | ) |
Evaluates hash21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 41 of file metal-code-opal-steel.frag.
References hash21().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file metal-code-opal-steel.frag.
References layout().
| 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.
| vec2 mirrorUV | ( | vec2 | p | ) |
Evaluates mirrorUV for this shader effect.
| p | Input value for the calculation. |
Definition at line 74 of file metal-code-opal-steel.frag.
References mirrorUV().
| float noise21 | ( | vec2 | p | ) |
Evaluates noise21 for this shader effect.
| p | Input value for the calculation. |
Definition at line 49 of file metal-code-opal-steel.frag.
| vec3 normalAt | ( | vec2 | p, |
| float | e ) |
Evaluates normalAt for this shader effect.
| p | Input value for the calculation. |
| e | Input value for the calculation. |
Definition at line 110 of file metal-code-opal-steel.frag.
References h(), normalAt(), and opal().
| float opal | ( | vec2 | p | ) |
Evaluates opal for this shader effect.
| p | Input value for the calculation. |
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().
| ext |
Definition at line 16 of file metal-code-opal-steel.frag.