Vulkan fragment shader: gpt trip. 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) in vec2 tc | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | lum (vec3 c) |
| Evaluates lum for this shader effect. | |
| float | hash (vec2 p) |
| Evaluates hash for this shader effect. | |
| float | noise (vec2 p) |
| Evaluates noise for this shader effect. | |
| vec3 | rgb2hsv (vec3 c) |
| Evaluates rgb2hsv for this shader effect. | |
| vec3 | hsv2rgb (vec3 c) |
| Evaluates hsv2rgb for this shader effect. | |
| vec2 | warp (vec2 uv) |
| Evaluates warp for this shader effect. | |
| float | edgeSobel (vec2 uv, vec2 px) |
| Evaluates edgeSobel for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: gpt trip.
Definition in file gpt_trip.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file gpt_trip.frag.
| #define time_f ext.u2.y |
Definition at line 18 of file gpt_trip.frag.
| float edgeSobel | ( | vec2 | uv, |
| vec2 | px ) |
Evaluates edgeSobel for this shader effect.
| uv | Input value for the calculation. |
| px | Input value for the calculation. |
Definition at line 113 of file gpt_trip.frag.
References edgeSobel(), and lum().
Referenced by edgeSobel(), and main().
| float hash | ( | vec2 | p | ) |
Evaluates hash for this shader effect.
| p | Input value for the calculation. |
Definition at line 40 of file gpt_trip.frag.
References hash().
| vec3 hsv2rgb | ( | vec3 | c | ) |
Evaluates hsv2rgb for this shader effect.
| c | Input value for the calculation. |
Definition at line 79 of file gpt_trip.frag.
References hsv2rgb().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file gpt_trip.frag.
References layout().
| float lum | ( | vec3 | c | ) |
Evaluates lum for this shader effect.
| c | Input value for the calculation. |
Definition at line 31 of file gpt_trip.frag.
References lum().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 132 of file gpt_trip.frag.
References edgeSobel(), hsv2rgb(), iResolution, lum(), main(), rgb2hsv(), s2(), s3, time_f, and warp().
| float noise | ( | vec2 | p | ) |
Evaluates noise for this shader effect.
| p | Input value for the calculation. |
Definition at line 49 of file gpt_trip.frag.
| vec3 rgb2hsv | ( | vec3 | c | ) |
| vec2 warp | ( | vec2 | uv | ) |
| ext |
Definition at line 16 of file gpt_trip.frag.