Vulkan fragment shader: code-frac-x-astral-dream-engine. 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_rms ext.u3.z |
| #define | amp_smooth ext.u3.w |
| #define | iMouse ext.mouse |
| #define | iResolution ext.u0.zw |
| #define | iamp ext.u1.z |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| mat2 | rot (float a) |
| Evaluates rot for this shader effect. | |
| float | saturate (float x) |
| Evaluates saturate for this shader effect. | |
| vec2 | saturate (vec2 x) |
| Evaluates saturate for this shader effect. | |
| vec3 | saturate (vec3 x) |
| Evaluates saturate for this shader effect. | |
| vec2 | hash22 (vec2 p) |
| Evaluates hash22 for this shader effect. | |
| float | valueNoise (vec2 p) |
| Evaluates valueNoise for this shader effect. | |
| float | fbm6 (vec2 p) |
| Evaluates fbm6 for this shader effect. | |
| vec2 | flowNoise (vec2 p) |
| Evaluates flowNoise for this shader effect. | |
| vec2 | complexMul (vec2 a, vec2 b) |
| Evaluates complexMul for this shader effect. | |
| vec2 | complexDiv (vec2 a, vec2 b) |
| Evaluates complexDiv for this shader effect. | |
| vec2 | kaleido (vec2 p, float segments) |
| Evaluates kaleido for this shader effect. | |
| vec2 | mirrorWrap (vec2 uv) |
| Evaluates mirrorWrap for this shader effect. | |
| vec2 | boundedFold (vec2 p) |
| Evaluates boundedFold for this shader effect. | |
| float | aaLine (float distanceToLine, float halfWidth) |
| Evaluates aaLine for this shader effect. | |
| float | aaPulse (float phase, float width) |
| Evaluates aaPulse for this shader effect. | |
| vec3 | cosinePalette (float x) |
| Evaluates cosinePalette for this shader effect. | |
| vec4 | deepOrbit (vec2 seed, float t, vec4 audio) |
| Evaluates deepOrbit for this shader effect. | |
| vec3 | sampleTextureHQ (vec2 uv, vec2 direction, float splitPixels) |
| Evaluates sampleTextureHQ for this shader effect. | |
| vec2 | remixDomain (vec2 p, float t, vec4 audio) |
| Evaluates remixDomain for this shader effect. | |
| vec3 | remixDetail (vec2 p, vec2 original, float t, vec4 audio, vec4 orbit) |
| Evaluates remixDetail for this shader effect. | |
| vec3 | screenBlend (vec3 a, vec3 b) |
| Evaluates screenBlend for this shader effect. | |
| vec3 | filmicToneMap (vec3 x) |
| Evaluates filmicToneMap for this shader effect. | |
| void | main () |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
| const float | PI = 3.14159265358979323846 |
| const float | TAU = 6.28318530717958647692 |
| const float | SEGMENTS = 6.0 |
| const float | FOLD_GAIN = 1.340 |
| const float | SPIN_RATE = 0.300 |
| const float | WARP_STRENGTH = 0.770 |
| const float | TEXTURE_MIX = 0.770 |
| const float | EXPOSURE = 1.056 |
| const float | HUE_SHIFT = 0.741 |
Vulkan fragment shader: code-frac-x-astral-dream-engine.
Definition in file code-frac-x-astral-dream-engine.frag.
| #define amp_high ext.audio_bands.z |
Definition at line 13 of file code-frac-x-astral-dream-engine.frag.
| #define amp_low ext.audio_bands.x |
Definition at line 14 of file code-frac-x-astral-dream-engine.frag.
| #define amp_mid ext.audio_bands.y |
Definition at line 15 of file code-frac-x-astral-dream-engine.frag.
| #define amp_peak ext.u2.w |
Definition at line 16 of file code-frac-x-astral-dream-engine.frag.
| #define amp_rms ext.u3.z |
Definition at line 17 of file code-frac-x-astral-dream-engine.frag.
| #define amp_smooth ext.u3.w |
Definition at line 18 of file code-frac-x-astral-dream-engine.frag.
| #define iamp ext.u1.z |
Definition at line 21 of file code-frac-x-astral-dream-engine.frag.
| #define iMouse ext.mouse |
Definition at line 19 of file code-frac-x-astral-dream-engine.frag.
| #define iResolution ext.u0.zw |
Definition at line 20 of file code-frac-x-astral-dream-engine.frag.
| #define time_f ext.u2.y |
Definition at line 22 of file code-frac-x-astral-dream-engine.frag.
| float aaLine | ( | float | distanceToLine, |
| float | halfWidth ) |
Evaluates aaLine for this shader effect.
| distanceToLine | Input value for the calculation. |
| halfWidth | Input value for the calculation. |
Definition at line 198 of file code-frac-x-astral-dream-engine.frag.
References aaLine(), and iResolution.
Referenced by aaLine(), and remixDetail().
| float aaPulse | ( | float | phase, |
| float | width ) |
Evaluates aaPulse for this shader effect.
| phase | Input value for the calculation. |
| width | Input value for the calculation. |
Definition at line 209 of file code-frac-x-astral-dream-engine.frag.
References aaPulse(), iResolution, and wave().
Referenced by aaPulse(), and remixDetail().
| vec2 boundedFold | ( | vec2 | p | ) |
Evaluates boundedFold for this shader effect.
| p | Input value for the calculation. |
Definition at line 186 of file code-frac-x-astral-dream-engine.frag.
References boundedFold().
Referenced by boundedFold(), and remixDetail().
| vec2 complexDiv | ( | vec2 | a, |
| vec2 | b ) |
Evaluates complexDiv for this shader effect.
| a | Input value for the calculation. |
| b | Input value for the calculation. |
Definition at line 153 of file code-frac-x-astral-dream-engine.frag.
References complexDiv().
Referenced by complexDiv(), and remixDomain().
| vec2 complexMul | ( | vec2 | a, |
| vec2 | b ) |
Evaluates complexMul for this shader effect.
| a | Input value for the calculation. |
| b | Input value for the calculation. |
Definition at line 143 of file code-frac-x-astral-dream-engine.frag.
References complexMul().
Referenced by complexMul(), remixDetail(), and remixDomain().
| vec3 cosinePalette | ( | float | x | ) |
Evaluates cosinePalette for this shader effect.
| x | Input value for the calculation. |
Definition at line 220 of file code-frac-x-astral-dream-engine.frag.
References cosinePalette(), frequency, HUE_SHIFT, saturate(), and TAU.
Referenced by cosinePalette(), and main().
| vec4 deepOrbit | ( | vec2 | seed, |
| float | t, | ||
| vec4 | audio ) |
Evaluates deepOrbit for this shader effect.
| seed | Input value for the calculation. |
| t | Input value for the calculation. |
| audio | Input value for the calculation. |
Definition at line 237 of file code-frac-x-astral-dream-engine.frag.
References deepOrbit(), energy(), FOLD_GAIN, rot(), seed, SPIN_RATE, and TAU.
Referenced by deepOrbit(), and main().
| float fbm6 | ( | vec2 | p | ) |
Evaluates fbm6 for this shader effect.
| p | Input value for the calculation. |
Definition at line 115 of file code-frac-x-astral-dream-engine.frag.
References fbm6(), rot(), and valueNoise().
Referenced by fbm6(), flowNoise(), and remixDetail().
| vec3 filmicToneMap | ( | vec3 | x | ) |
Evaluates filmicToneMap for this shader effect.
| x | Input value for the calculation. |
Definition at line 350 of file code-frac-x-astral-dream-engine.frag.
References filmicToneMap(), and saturate().
Referenced by filmicToneMap(), and main().
| vec2 flowNoise | ( | vec2 | p | ) |
Evaluates flowNoise for this shader effect.
| p | Input value for the calculation. |
Definition at line 132 of file code-frac-x-astral-dream-engine.frag.
References fbm6(), flowNoise(), and rot().
Referenced by flowNoise(), remixDetail(), and remixDomain().
| vec2 hash22 | ( | vec2 | p | ) |
Evaluates hash22 for this shader effect.
| p | Input value for the calculation. |
Definition at line 88 of file code-frac-x-astral-dream-engine.frag.
References hash22().
Referenced by cells(), cellular(), compoundSample(), energyField(), hash22(), main(), perceptualField(), skyField(), valueNoise(), voronoi(), and voronoiMetrics().
| vec2 kaleido | ( | vec2 | p, |
| float | segments ) |
Evaluates kaleido for this shader effect.
| p | Input value for the calculation. |
| segments | Input value for the calculation. |
Definition at line 164 of file code-frac-x-astral-dream-engine.frag.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 3 of file code-frac-x-astral-dream-engine.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 359 of file code-frac-x-astral-dream-engine.frag.
References amp_high, amp_low, amp_mid, amp_peak, cosinePalette(), deepOrbit(), EXPOSURE, filmicToneMap(), fractalColor(), iamp, iMouse, iResolution, main(), mirrorWrap(), palette(), remixDetail(), remixDomain(), rot(), sampleTextureHQ(), saturate(), screenBlend(), SPIN_RATE, TAU, TEXTURE_MIX, time_f, and WARP_STRENGTH.
| vec2 mirrorWrap | ( | vec2 | uv | ) |
Evaluates mirrorWrap for this shader effect.
| uv | Input value for the calculation. |
Definition at line 177 of file code-frac-x-astral-dream-engine.frag.
References mirrorWrap().
Referenced by main(), main(), mirrorWrap(), mirrorWrap(), and sampleTextureHQ().
| vec3 remixDetail | ( | vec2 | p, |
| vec2 | original, | ||
| float | t, | ||
| vec4 | audio, | ||
| vec4 | orbit ) |
Evaluates remixDetail for this shader effect.
| p | Input value for the calculation. |
| original | Input value for the calculation. |
| t | Input value for the calculation. |
| audio | Input value for the calculation. |
| orbit | Input value for the calculation. |
Definition at line 324 of file code-frac-x-astral-dream-engine.frag.
References aaLine(), aaPulse(), remixDetail(), SEGMENTS, TAU, and WARP_STRENGTH.
Referenced by main(), and remixDetail().
| vec2 remixDomain | ( | vec2 | p, |
| float | t, | ||
| vec4 | audio ) |
Evaluates remixDomain for this shader effect.
| p | Input value for the calculation. |
| t | Input value for the calculation. |
| audio | Input value for the calculation. |
Definition at line 297 of file code-frac-x-astral-dream-engine.frag.
References complexDiv(), complexMul(), FOLD_GAIN, kaleido(), remixDomain(), rot(), SEGMENTS, and SPIN_RATE.
Referenced by main(), and remixDomain().
| mat2 rot | ( | float | a | ) |
Evaluates rot for this shader effect.
| a | Input value for the calculation. |
Definition at line 59 of file code-frac-x-astral-dream-engine.frag.
References rot().
| vec3 sampleTextureHQ | ( | vec2 | uv, |
| vec2 | direction, | ||
| float | splitPixels ) |
Evaluates sampleTextureHQ for this shader effect.
| uv | Input value for the calculation. |
| direction | Input value for the calculation. |
| splitPixels | Input value for the calculation. |
Definition at line 266 of file code-frac-x-astral-dream-engine.frag.
References mirrorWrap(), and sampleTextureHQ().
Referenced by main(), and sampleTextureHQ().
| float saturate | ( | float | x | ) |
Evaluates saturate for this shader effect.
| x | Input value for the calculation. |
Definition at line 69 of file code-frac-x-astral-dream-engine.frag.
References saturate().
Referenced by cosinePalette(), filmicToneMap(), main(), remixDetail(), saturate(), saturate(), and saturate().
| vec2 saturate | ( | vec2 | x | ) |
Evaluates saturate for this shader effect.
| x | Input value for the calculation. |
Definition at line 75 of file code-frac-x-astral-dream-engine.frag.
References saturate().
| vec3 saturate | ( | vec3 | x | ) |
Evaluates saturate for this shader effect.
| x | Input value for the calculation. |
Definition at line 81 of file code-frac-x-astral-dream-engine.frag.
References saturate().
| vec3 screenBlend | ( | vec3 | a, |
| vec3 | b ) |
Evaluates screenBlend for this shader effect.
| a | Input value for the calculation. |
| b | Input value for the calculation. |
Definition at line 341 of file code-frac-x-astral-dream-engine.frag.
References screenBlend().
Referenced by main(), and screenBlend().
| float valueNoise | ( | vec2 | p | ) |
Evaluates valueNoise for this shader effect.
| p | Input value for the calculation. |
Definition at line 99 of file code-frac-x-astral-dream-engine.frag.
References hash22(), and valueNoise().
Referenced by fbm6(), ridgedFbm(), and valueNoise().
| const float EXPOSURE = 1.056 |
Definition at line 51 of file code-frac-x-astral-dream-engine.frag.
Referenced by main().
| ext |
Definition at line 12 of file code-frac-x-astral-dream-engine.frag.
| const float FOLD_GAIN = 1.340 |
Definition at line 47 of file code-frac-x-astral-dream-engine.frag.
Referenced by deepOrbit(), and remixDomain().
| const float HUE_SHIFT = 0.741 |
Definition at line 52 of file code-frac-x-astral-dream-engine.frag.
Referenced by cosinePalette(), and remixDetail().
| const float PI = 3.14159265358979323846 |
Definition at line 44 of file code-frac-x-astral-dream-engine.frag.
| const float SEGMENTS = 6.0 |
Definition at line 46 of file code-frac-x-astral-dream-engine.frag.
| const float SPIN_RATE = 0.300 |
Definition at line 48 of file code-frac-x-astral-dream-engine.frag.
Referenced by deepOrbit(), main(), and remixDomain().
| const float TAU = 6.28318530717958647692 |
Definition at line 45 of file code-frac-x-astral-dream-engine.frag.
| const float TEXTURE_MIX = 0.770 |
Definition at line 50 of file code-frac-x-astral-dream-engine.frag.
Referenced by main().
| const float WARP_STRENGTH = 0.770 |
Definition at line 49 of file code-frac-x-astral-dream-engine.frag.
Referenced by heightField(), main(), main(), remixDetail(), remixDomain(), and surfaceNormal().