From 2bb276d4ed15277cb0172353250fd7e92bf12840 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Wed, 11 Feb 2026 07:50:35 +0300 Subject: add resources --- res/shaders/glsl330/curved-line.fs | 55 ++++++++++++++++++++++++++++++ res/shaders/glsl330/generated-circercly.fs | 23 +++++++++++++ res/shaders/glsl330/generated-curve.fs | 21 ++++++++++++ res/shaders/glsl330/generated-eye.fs | 19 +++++++++++ res/shaders/glsl330/generated-hmm.fs | 23 +++++++++++++ res/shaders/glsl330/generated-hmm2.fs | 23 +++++++++++++ res/shaders/glsl330/generated-hmm3.fs | 23 +++++++++++++ res/shaders/glsl330/generated-nice.fs | 23 +++++++++++++ res/shaders/glsl330/generated-wobble.fs | 23 +++++++++++++ res/shaders/glsl330/generated-wow.fs | 23 +++++++++++++ res/shaders/glsl330/generated.fs | 23 +++++++++++++ res/shaders/glsl330/gradient.fs | 12 +++++++ res/shaders/glsl330/line.fs | 27 +++++++++++++++ res/shaders/glsl330/quadratic-bezier.fs | 53 ++++++++++++++++++++++++++++ res/shaders/glsl330/random-fractal.fs | 26 ++++++++++++++ res/shaders/glsl330/sandbox.fs | 21 ++++++++++++ 16 files changed, 418 insertions(+) create mode 100644 res/shaders/glsl330/curved-line.fs create mode 100644 res/shaders/glsl330/generated-circercly.fs create mode 100644 res/shaders/glsl330/generated-curve.fs create mode 100644 res/shaders/glsl330/generated-eye.fs create mode 100644 res/shaders/glsl330/generated-hmm.fs create mode 100644 res/shaders/glsl330/generated-hmm2.fs create mode 100644 res/shaders/glsl330/generated-hmm3.fs create mode 100644 res/shaders/glsl330/generated-nice.fs create mode 100644 res/shaders/glsl330/generated-wobble.fs create mode 100644 res/shaders/glsl330/generated-wow.fs create mode 100644 res/shaders/glsl330/generated.fs create mode 100644 res/shaders/glsl330/gradient.fs create mode 100644 res/shaders/glsl330/line.fs create mode 100644 res/shaders/glsl330/quadratic-bezier.fs create mode 100644 res/shaders/glsl330/random-fractal.fs create mode 100644 res/shaders/glsl330/sandbox.fs (limited to 'res/shaders/glsl330') diff --git a/res/shaders/glsl330/curved-line.fs b/res/shaders/glsl330/curved-line.fs new file mode 100644 index 0000000..58e65ed --- /dev/null +++ b/res/shaders/glsl330/curved-line.fs @@ -0,0 +1,55 @@ +#version 330 core + +#define PI 3.14159265359 + +uniform vec2 resolution; +uniform vec2 mouse; +uniform float time; + +out vec4 color; + +float +plot (vec2 st, float pct) +{ + return + smoothstep (pct - 0.02, pct, st.y) - + smoothstep (pct, pct + 0.02, st.y); +} + +void +main () +{ + vec2 st = gl_FragCoord.xy/resolution; + vec2 mt = mouse/resolution; + + float x = st.x; + float y; + + y = pow (x, PI); + // y = exp (x - 1); + // y = log (x + 1); + // y = sqrt (x); + // y = step (mt.x, x); + // y = smoothstep (mt.x, 1 - mt.x, x); + // y = + // smoothstep (.2, .5, x) - + // smoothstep (.5, .8, x); + // y = (sin (2*PI*x + time) + 1)/2; + // y = (cos (2*PI*x + time) + 1)/2; + // y = mod (x, 1./4)*4; + // y = fract (x*4); + // y = ceil (x*4)/4; + // y = floor (x*4)/4; + // y = sign (x - 0.5); + // y = abs (x - 1./2)*2; + // y = (clamp (x, 1./4, 3./4) - 1./4)*2; + // y = min (1./2, x)*2; + // y = (max (.5, x) - 1./2)*2; + + vec3 c = vec3 (y); + + float pct = plot (st, y); + c = (1 - pct)*c + pct*vec3 (0, 1, 0); + + color = vec4 (c, 1); +} diff --git a/res/shaders/glsl330/generated-circercly.fs b/res/shaders/glsl330/generated-circercly.fs new file mode 100644 index 0000000..7bea053 --- /dev/null +++ b/res/shaders/glsl330/generated-circercly.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1747789190 +// TERM_TRESHOLD: 128 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; +uniform float zoom; + +out vec4 color; + +float z = zoom; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution; + float t = time*0.25; + + vec3 g = vec3 ((sqrt(abs((sqrt(abs(sqrt(abs(((c.x/sqrt(abs(sqrt(abs(((((abs(((((((((abs(sqrt(abs(sin((((cos(((cos(sqrt(abs(sqrt(abs(((sin((sqrt(abs(((sqrt(abs(sqrt(abs((((sqrt(abs((sqrt(abs((((sqrt(abs(sqrt(abs(((((((sqrt(abs(c.x))*(sqrt(abs((sqrt(abs(sin(abs((((c.x - (abs(abs((((sqrt(abs((sqrt(abs(sqrt(abs(((sqrt(abs((sin(sin(sin(((sin((cos(((cos(abs(((sqrt(abs(cos(c.x)))*cos((c.y - c.x)) - m.y) - c.x))) - c.x)/c.x)) - c.y)) - c.y) - sin(t)))))/.024006))) - c.x) - .183139))))) - m.x))) - c.y)/sin(t)) - sin(t)))) - sin(t))) - c.x) - m.y))))) - m.x))) - c.x) - c.x) - sin(t)) - c.x) - cos(t)) - c.y)/c.x)*m.x)))) - .223574) - c.x) - cos(t)))) - c.y)))/m.x) - c.x) - m.x))))) - c.x) - cos(t)))) - m.x)) - c.x) - c.x)))))) - c.x) - c.y)) - sin(t)) - .406444) - c.y))))) - m.y)/m.x) - c.x) - c.y)/cos(t))/.262350) - sin(t)) - c.y)) - c.x) - c.x)/c.x)/m.x)))))) - cos(t)))))) - c.x))) - c.x), cos(t), sin(((((((((cos(sqrt(abs((sqrt(abs(c.y)) - c.x)))) - (sqrt(abs((sqrt(abs(m.x)) - ((cos(sqrt(abs((m.y - c.y)))) - sqrt(abs(abs((sqrt(abs((((abs((sqrt(abs(sqrt(abs(cos((m.y - ((.254220 - (sqrt(abs(sqrt(abs(((m.y - sin(sqrt(abs((cos(sqrt(abs(sqrt(abs(sin(sqrt(abs(abs(sin(((((sqrt(abs(m.x)) - c.y)*.213340*c.x*cos(t) - .877721)/m.y) - .632123))))))))))) - c.x))))) - c.x))))) - cos(t))) + c.y))))))) - sin(t))) - c.y)/c.x) - c.x))) - c.y)))))*c.x - c.y))))/.123224))/m.x) - c.y)*.273026/c.x)/c.y) - cos(t)) - m.x)/m.y))); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-curve.fs b/res/shaders/glsl330/generated-curve.fs new file mode 100644 index 0000000..060a7b7 --- /dev/null +++ b/res/shaders/glsl330/generated-curve.fs @@ -0,0 +1,21 @@ +#version 330 core +// SEED: 1742120329 +// EXPR_CUTOFF: 1024 +// TERM_CUTOFF: 4096 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2 - 1; + vec2 m = mouse/resolution*2 - 1; + float t = sin(time); + + vec3 g = vec3 (sqrt(abs(((t+.841628)+((.746815*((sqrt(abs(sqrt(c.x*c.x+c.y*c.y)*sqrt(abs(sqrt(abs(c.y*(((abs(c.y)*abs(c.x)*(t+(sqrt(c.x*c.x+c.y*c.y)*(sqrt(c.x*c.x+c.y*c.y)+sqrt(abs((.717620+(t+-.440236)*sqrt(c.x*c.x+c.y*c.y)))))*abs(c.y)*(sqrt(abs(abs(c.y)))+sqrt(c.x*c.x+c.y*c.y)*c.y*abs(c.x)*(((((t*(sqrt(abs(t*(((((c.y*(sqrt(abs((sqrt(abs(((abs(c.x)+t*sqrt(c.x*c.x+c.y*c.y)*(sqrt(abs(sqrt(abs((sqrt(abs(((abs(c.y)+t)*((sqrt(c.x*c.x+c.y*c.y)*((sqrt(c.x*c.x+c.y*c.y)+sqrt(abs((.121253+((sqrt(c.x*c.x+c.y*c.y)+((sqrt(abs(((sqrt(abs((((sqrt(abs(sqrt(c.x*c.x+c.y*c.y)))+t)*sqrt(c.x*c.x+c.y*c.y)*(-.575649*sqrt(abs((-.772241*sqrt(abs(c.y))*-.350045*((((((sqrt(abs(((sqrt(abs(abs(c.y)*c.x*((((((((((sqrt(abs(t*((t+c.x*sqrt(abs(sqrt(abs(((sqrt(abs((c.x*(c.y*c.x*((t+abs(c.y))*sqrt(abs(sqrt(c.x*c.x+c.y*c.y)*(sqrt(abs(c.x*sqrt(abs(((sqrt(abs((sqrt(c.x*c.x+c.y*c.y)+sqrt(abs(((sqrt(abs(-.390245*t))*sqrt(c.x*c.x+c.y*c.y)*c.x*c.y+sqrt(c.x*c.x+c.y*c.y))*c.x+sqrt(c.x*c.x+c.y*c.y)))))*sqrt(c.x*c.x+c.y*c.y)))*-.479253*sqrt(c.x*c.x+c.y*c.y)+.737348)+c.y)))*.886277))+t)*c.x))+.111138)*t+sqrt(c.x*c.x+c.y*c.y))*sqrt(c.x*c.x+c.y*c.y)*c.y+sqrt(c.x*c.x+c.y*c.y))))+sqrt(c.x*c.x+c.y*c.y))*c.y+sqrt(c.x*c.x+c.y*c.y))))*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)))*-.402691*c.x*.073207)+.665750)*sqrt(c.x*c.x+c.y*c.y)*t*t))+t)*.600069+c.y)+c.y)*abs(c.x)*t+t)*.525490*t*t+c.y)+c.y)+sqrt(c.x*c.x+c.y*c.y))*abs(c.y)+c.y)*-.317696*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)*.935309*sqrt(c.x*c.x+c.y*c.y)*abs(c.y)+t)*c.x+.250402)*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)*.045232*c.x))+c.y)+abs(c.x))*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)*t))+c.y)+.692316)*sqrt(c.x*c.x+c.y*c.y)*.006071*sqrt(c.x*c.x+c.y*c.y)+-.673471)+abs(c.y))*sqrt(c.x*c.x+c.y*c.y)*c.y*sqrt(c.x*c.x+c.y*c.y)*-.590874+abs(c.y))+sqrt(c.x*c.x+c.y*c.y))*sqrt(c.x*c.x+c.y*c.y)*c.y+t)))+-.310244)*sqrt(c.x*c.x+c.y*c.y)+c.y)+abs(c.y))*t*c.y))*abs(c.y)*.931697*c.y*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)+t)*sqrt(c.x*c.x+c.y*c.y)+abs(c.y))))*c.y*sqrt(c.x*c.x+c.y*c.y)*t*sqrt(c.x*c.x+c.y*c.y)+.801641)+t)*.351430*abs(c.y)*.539056)*abs(c.y)+.802148)*-.913484*-.748285*abs(c.y))))*-.888028*.964735)*.983232+abs(c.y))*t+abs(c.y))+sqrt(c.x*c.x+c.y*c.y))+abs(c.x))))*sqrt(c.x*c.x+c.y*c.y)+abs(c.y))))*sqrt(c.x*c.x+c.y*c.y)*abs(c.y)))+abs(c.x))*sqrt(c.x*c.x+c.y*c.y))+c.y)*abs(c.x)*c.x*t*t))+.699871)))*t+abs(c.x))*t*t+t)*c.x*t*sqrt(c.x*c.x+c.y*c.y)+sqrt(c.x*c.x+c.y*c.y))*sqrt(c.x*c.x+c.y*c.y)+c.x)*abs(c.y)+abs(c.y))*abs(c.x)*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)+c.y)*t))*.236514*.047653+.569603)*t*abs(c.x)*t*-.426652+c.x)+t)*sqrt(c.x*c.x+c.y*c.y)+abs(c.x))*abs(c.x)+t)+t)*.504786*c.y*sqrt(c.x*c.x+c.y*c.y))*sqrt(c.x*c.x+c.y*c.y)*abs(c.y)+t))*c.y+c.x)*.494624*t+sqrt(c.x*c.x+c.y*c.y))*.980147+t)))*t*sqrt(c.x*c.x+c.y*c.y)))*t*-.471825))*t+abs(c.y))+.716150)*abs(c.y)+t)*t+c.x))*t*t)), -.744303, t); + color = vec4 ((g + 1)/2, 1); +} diff --git a/res/shaders/glsl330/generated-eye.fs b/res/shaders/glsl330/generated-eye.fs new file mode 100644 index 0000000..a302afa --- /dev/null +++ b/res/shaders/glsl330/generated-eye.fs @@ -0,0 +1,19 @@ +#version 330 core +// SEED: 1742088504 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*14 - 7; + vec2 m = mouse/resolution*2 - 1; + float t = sin(time); + + vec3 g = vec3 (sqrt(abs((((c.x+(sqrt(abs(((sqrt(c.x*c.x+c.y*c.y)*(sqrt(abs((c.x*(((((abs(c.x)+c.y)+-.417370)+sqrt(abs((((abs(c.x)+sqrt(abs(c.y)))*(((abs(c.x)+(sqrt(abs((((c.x+(c.x+c.x))*sqrt(abs(sqrt(abs((sqrt(abs(sqrt(abs(sqrt(abs((sqrt(c.x*c.x+c.y*c.y)+sqrt(c.x*c.x+c.y*c.y))))))))*-.962544*abs(c.x)+-.974848)*-.108978))*t))*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)+sqrt(c.x*c.x+c.y*c.y))+abs(c.y))*t))+abs(c.x)))*abs(c.x)*sqrt(c.x*c.x+c.y*c.y)+c.x)+t)+abs(c.y))+-.360236))))+c.y)+sqrt(c.x*c.x+c.y*c.y))*c.x+c.y)*t*abs(c.x)*-.443423))*-.234208+abs(c.y))*abs(c.x)+c.y)*abs(c.y)+c.y)*c.x*sqrt(c.x*c.x+c.y*c.y)*sqrt(c.x*c.x+c.y*c.y)*abs(c.x)*c.x))+abs(c.x)))*abs(c.y)+c.x)*abs(c.y)+t))), sqrt(c.x*c.x+c.y*c.y), c.y); + color = vec4 ((g + 1)/39, 1); +} diff --git a/res/shaders/glsl330/generated-hmm.fs b/res/shaders/glsl330/generated-hmm.fs new file mode 100644 index 0000000..67bb70a --- /dev/null +++ b/res/shaders/glsl330/generated-hmm.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1742122123 +// EXPR_CUTOFF: 4096 +// TERM_CUTOFF: 2147483648 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +float z = 8; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution*2*z - z; + float t = time*0.2; + + vec3 g = vec3 ((c.y+.921613)*.325053, c.x*((cos(t)+(((sin(t)*sin(t)*-.805496*-.010572+.349789*c.x)*sin(t)+(cos(t)+((((c.x+(-.748427*(((c.y*sin(t)+(((sin(t)+(-.343172*cos(t)*.690834*(c.x+sin(t))+(cos(t)*(c.y+((((((((((-.030179*c.x*((((sin(t)+(((cos(t)*(c.y+-.427585*(((sin(t)+(-.442710*cos(t)*cos(t)+c.x)*cos(t)*((((c.x+.672315)+(-.055779*((cos(t)+cos(t))+(c.y+.531889))+sin(t)*c.y*(c.y+cos(t))*((((c.x*((c.x+cos(t)*(cos(t)+((((((c.y*c.y*(((((-.501261*(c.y+(((c.y*(sin(t)+-.584748*c.x)*sin(t)*(c.x*cos(t)+((c.y+c.x)+(cos(t)*(c.y+.596704)+(.343790+((c.x*(((((sin(t)+(-.913283+(((.860644+(-.342682*cos(t)*(((-.890349+(.802705*((((-.314136*((cos(t)*(((c.y*((-.629232*(((sin(t)*(.285856*(.647185+cos(t))+(((.516711*-.340917*.165069*(c.y+(sin(t)+(c.x*-.319487*(sin(t)*((-.233872+(((sin(t)*((.545153+(((.521812+((c.x+(c.x*(((((((c.y*(.264726*(sin(t)+((sin(t)*((((.846620+((c.y+((sin(t)*-.523443*.034923*((c.y*((c.y+((cos(t)+.221792*sin(t)*.505337*((((c.x*((sin(t)+((sin(t)*(cos(t)+c.x)+(cos(t)+(((((((.209863+(-.192768*((((((.853848+(cos(t)+((cos(t)+((c.y*((c.x*((c.y*(((c.y+c.x)*(((-.516203*((c.y*c.x+(((-.479637+sin(t)*(.451554+(.082077+(((c.x+((.289904*(c.y+.536425)+-.471675*((((c.y*.432884*((cos(t)*(((cos(t)+.670435*((cos(t)*.148078*(c.x*sin(t)*(sin(t)+.192920*((c.x*((((((sin(t)*((.673419+(((((c.x*(cos(t)+(((sin(t)*(sin(t)+.251941*(c.x+.278777*(c.x*(c.x+(((sin(t)*.127122+.503076)+(c.x*sin(t)*(.036517+c.y)+cos(t)*((((.668943*sin(t)+((-.923682+(-.638914+cos(t)))*.670620+((((-.174922+c.x*-.651271*(((((c.x*((((-.325598*(((.298675+((sin(t)+(c.x+sin(t)*(cos(t)+(sin(t)+(cos(t)+c.x*.407829*c.x*(sin(t)*(((sin(t)+(.459401+c.y)*(c.y*(cos(t)+((.162544*(((.327274+(.725540*((((((((c.y+((((sin(t)*((((((sin(t)+((-.124727+cos(t)*c.x)+-.117798*(((((cos(t)+(cos(t)+(c.x*c.y*c.x*c.x+(((((sin(t)+.570056)*((((cos(t)+(((((((.399357+cos(t))+(c.x+(-.843724+c.y*(c.y+(-.448566+((cos(t)*(((c.y+(sin(t)+.309947))+((.003672*(((c.x+(((cos(t)+(((c.x*-.044934*.667990*.121743*(cos(t)+(.565064*((.518869+c.x)*(c.y+((((.921299*cos(t)+(((.893280*-.919702+-.860168)*(-.711059*(sin(t)*(((c.x*sin(t)*c.x*cos(t)*(c.x+(((((((((cos(t)*.548476+(c.x*(((.993830*(-.240999*cos(t)*(.417288+((((((((c.y+.474236*sin(t)*c.x)+(-.351566+(-.172338+(-.692406+(sin(t)+(-.281608+.306332*((.121135+(sin(t)+.559575))+((((sin(t)*c.x+(.345502*c.x*(cos(t)+((sin(t)*c.y*((((sin(t)*(.022572+c.x)+(-.534277+((cos(t)+-.752693*((((c.x+((cos(t)+(-.169538+-.294407)*c.x*cos(t)*(((c.x*(c.y+((.752173*(((((-.931304*(.495269+(cos(t)+(((((((c.y*.635580+sin(t))*(c.y*c.x*(sin(t)+c.y)*-.854435*(cos(t)+(cos(t)+-.421967)*c.x*.176723)*c.y+-.132227)+.727118)*((((c.y*((.537951+cos(t))+sin(t))+((((c.x+.783058)+sin(t))+(((((cos(t)+cos(t)*((((((((.358682+((cos(t)+sin(t)*(sin(t)*sin(t)*(c.x+((sin(t)+sin(t)*c.y*-.190298*(c.y+-.647038)*c.x*cos(t)*((((((cos(t)+((sin(t)+c.y*(c.y+(sin(t)+((-.318863*(-.550338*((((((((-.747476+(c.y*sin(t)*sin(t)*-.863990*(((((((((((sin(t)+(cos(t)*(cos(t)+c.y)+cos(t)*(((sin(t)*(((-.153874+((-.358394+(c.y+cos(t))*(sin(t)*(cos(t)+sin(t))*cos(t)*c.y+c.x)*cos(t)*cos(t))+c.y))+c.x)+c.y)*c.y*c.y+-.779510)*c.x+-.912497)*c.y+.808971)*c.y)*sin(t)*c.x)+c.y)*c.y+sin(t))+-.390731)+.465263)+sin(t))*sin(t)+.028697)*-.728210+c.x)+-.553001)+.720363)+c.x)*sin(t)*c.x*c.y*.683846+cos(t)))+sin(t))+c.x)*-.091040*-.445089+-.225729)*-.199432*-.176599+c.y)+c.x)*.129546*.605996*-.818206+cos(t))+sin(t))+sin(t))*c.x+c.y)+.984362)*cos(t)))*cos(t))+-.002822))*c.y*-.779707+sin(t))*sin(t)*.538194*sin(t)*.076213*sin(t)*c.y*c.y+c.y)*.286743+c.y)*-.924404+c.y)+.258503)*cos(t)*c.y*cos(t)*cos(t))+c.x))+sin(t))*-.684024*cos(t)*c.y)+.293331))*.105977+sin(t))+-.273698)*sin(t)*c.x+cos(t))*c.x+c.y)+c.y)+c.y)+c.y))+c.x)+-.923175)+.302808)*-.723536*c.y+c.x))+-.912036))+c.x)*.776956+c.y)+c.x)*-.205193+.768993)*.618506*cos(t)+c.x)*.255470+c.x)+c.y)*-.314262+c.x)*cos(t))*-.440800*c.x)+c.y)+c.x)+.201735)+c.y)*cos(t)*c.x*.697059+cos(t))*-.980844+cos(t))*.613713+c.x))+-.774699)*.699601*.815402*-.178510*sin(t)+c.y)*c.y+c.y)*c.y*.163733)+.812665))+cos(t))*c.x+-.760478)+c.x)*c.y*.486917)+c.y)*sin(t)*sin(t))*.123030)+cos(t))*c.x+cos(t))+c.y)*-.509193+cos(t))*.565606*cos(t)+cos(t))*c.x)*c.y*.211716*sin(t)*cos(t)+c.x)*c.x)+-.645806)+cos(t))*cos(t)+c.x))*.413704))*c.x))))+c.y)+.636542)+c.y)+cos(t))+cos(t))*c.y*.132776*c.y+-.719065))*.297112+.371904)*c.x*c.x+-.951982)*sin(t)+-.118049)+c.x)+c.y)*-.868101*-.358446*-.372481)+c.x)+.047805)+sin(t))*c.y+.069825)*sin(t)+-.755589)+cos(t))+sin(t))*.094713*c.y+sin(t))*c.y)+c.x)*c.x*cos(t)+.313333)+.361375)*-.886769*.739605+-.679107)*c.y+-.132542)*c.x+sin(t))+sin(t)))+c.y)+.953331)*c.x*c.y*-.278520+.450773))+.624509)*-.339802+.178599))*cos(t)+c.y)+c.y)*.454816*c.y+-.623654)*sin(t))+cos(t))*sin(t)+cos(t))*c.x)+c.y)+c.x)+cos(t))+c.x)*c.x*.225040)+-.402736)*cos(t)*sin(t)+.322340)*sin(t)+cos(t)))))*.155874)*c.y)*-.891767+cos(t))+sin(t))+c.x)+-.089209)+-.621365))+sin(t))*c.x+sin(t))+c.y)+c.x)+.510670)+sin(t))+-.800424)*c.x)*.411754*sin(t)))*.785762+cos(t))+-.217351)+cos(t))*.253541+sin(t))*c.x*.236968))+-.570227)+c.y)+c.x)*cos(t)*.299339+cos(t))+.453238)*c.x*-.213748+cos(t))*.799942+.397050)+sin(t))*.171584*c.x+.391302)*c.y)+.923620)+c.y)+c.y)+sin(t))*c.x*c.y*sin(t)*-.935085+c.x)+cos(t))*.402821+cos(t))*c.x*.535617*c.x+sin(t))*-.272608)+sin(t))*c.y*-.608992*sin(t)+c.y)*.239503*c.x+cos(t))+cos(t))*cos(t)*c.x)+.725726)*c.y)*.665996*c.y*c.y*.425636*c.y*-.384766+sin(t))+c.y)+c.y))))))*c.y+cos(t)))*-.827364+c.y)+-.236832)*c.y+sin(t))+-.270076)+sin(t))+sin(t))+.996826)+c.y)+cos(t))+cos(t))*c.x+c.x)*c.x*cos(t))*-.353936+-.846449)+c.y)*cos(t)+cos(t))*-.393208)*sin(t))+c.y)*-.806556+.153621)*.459975*-.377962*.279950*c.x*.499755+c.y)*c.x*cos(t))*-.005746)*sin(t)+-.705195))*-.413080*-.470901*-.053310+sin(t))*c.x*.135568*sin(t))*c.x*.163494)*cos(t)*cos(t)+c.x)+c.y)+c.x))*.021609*c.y*-.443509+.531506)*-.040130*c.x+.455249)*cos(t)+sin(t))*sin(t)+c.x)*c.x+c.y))+.107120)*sin(t)*.607343*c.x*sin(t)*-.637670+c.x)*.619013*c.x+c.x)*c.x+cos(t))+c.y)+c.y)*c.x+cos(t))*cos(t)+-.597096)+cos(t))*-.493195*c.y*c.x*.792454*sin(t))*-.735918*.341850+.486465)+cos(t))*cos(t)+cos(t))*c.y*cos(t))*-.809803+c.y)*-.471889+.405415)+cos(t))+c.y)*c.y*sin(t)+c.y)+.426810)+sin(t))*cos(t)+.077730)*.319501*c.x)+-.575176)*c.y)+cos(t))+c.y)))*.586818*sin(t))+.242765)+c.y))+c.x)+c.x)+cos(t))*cos(t)+c.y)*.606209+-.660802)*c.x+c.x)*-.905622*.024623*c.y+.480682)+.198539)*c.x*-.558772*sin(t)+c.y)+sin(t))*cos(t)*.094095+c.y)*c.y+c.x))*.943711*.391091+.539948)))+sin(t))*c.y*.127370*c.x+.586605)+c.x)+c.x)*sin(t)*c.y+c.y)+c.x))+sin(t))+c.x)+c.y)+sin(t))+-.492908)+.378148)))+.145521)*.980266)+cos(t))*sin(t)*c.y*c.x+-.008688)+sin(t))*-.764624+.650868)+cos(t)))*.112320*c.x+-.240905)*-.979722)+cos(t))+sin(t))+c.y)+c.y)*cos(t)+cos(t))*.786226)*-.310201+cos(t))*.658073)+c.x)*c.x+sin(t))*c.x+-.609273)*cos(t)+sin(t))+c.y))+sin(t))*-.209956+.184622)+c.y)+.325813)*sin(t)*c.y*c.x*c.y*-.458519+cos(t))*-.980485+c.x)*-.926549*c.x+c.y)*c.x+.523002)*c.y*.509367+c.y))+cos(t))*c.x)+.066667)*cos(t)*-.517619+.022699))+c.y)*c.y*c.x+.494267)+c.x)*sin(t)+sin(t)))+c.x)*c.y*-.370266+.938214)+c.x))*.530754*c.y)+-.632904)*sin(t)+sin(t))+c.y)*.672070)+sin(t))+c.y)*.936942*sin(t)*-.508706*c.y+cos(t))*c.y+-.095549)+cos(t))*c.x+.826211)+c.y)+c.x)*sin(t)*-.164804+c.y)*c.x+sin(t))+c.x)+sin(t))*c.x*cos(t)+.613963)*.826326+.410811)+cos(t)))*c.y*sin(t)+c.y)*-.046870*.451732*-.618945+sin(t))+-.196168)*sin(t)*-.475948*.297825*.075368*sin(t)*c.x)+cos(t))+-.619323))*.351165*c.x*c.y)+.418852)+c.y)+sin(t))+cos(t))*c.x*c.y+-.332448)*.453979+.770573))*.212651*c.x*c.y*.863438)*cos(t))*.954933*c.y)*sin(t)+c.y)*-.896381+.781197)+c.y)*-.494928*c.y)*cos(t)+c.x)+c.y)*sin(t)+c.y)+-.850189)*sin(t)+-.523145)*sin(t)*-.357280+.148918)*-.903740*c.y*-.228591+.338209)+c.x)+-.010943)*c.x+c.y)*.798777+.743585))*.575715*-.863360*c.y)+cos(t))+sin(t))+.818486)+.272945)+c.y)*.959756*sin(t)*sin(t))*c.y*-.279049*.898464)+.173048)+cos(t))*sin(t))+c.y)+sin(t)))*.481898*c.y+.251914)+.654542)*c.y+.658259))*c.y+.267418)*sin(t)+.001685)*sin(t)+c.y)*cos(t)*c.x*cos(t)+c.y)+-.994657)*-.420631+c.y)+c.x)*sin(t)+c.y)+cos(t))+.255936)*cos(t)+cos(t))+cos(t))*sin(t)+-.192621))+cos(t))*-.460924)*c.y*sin(t))+cos(t))+cos(t))*cos(t))+.489571)*-.358464+c.x)+-.235631))*sin(t)+sin(t))+.897966)+cos(t))*.680235)*cos(t))*c.y*c.x+c.y))+sin(t)), -.505522); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-hmm2.fs b/res/shaders/glsl330/generated-hmm2.fs new file mode 100644 index 0000000..99f6064 --- /dev/null +++ b/res/shaders/glsl330/generated-hmm2.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1742129762 +// EXPR_CUTOFF: 4096 +// TERM_CUTOFF: 2147483648 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +float z = 10; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution*2*z - z; + float t = time*0.25; + + vec3 g = vec3 (c.y, (((.162765*cos(t)+sin(t))+c.x)*((sin(t)*c.x*((((((.900683+(((((c.x+cos(t)*(((((((.692454*c.y*cos(t)*((cos(t)*((c.y+(((.177144*sin(t)+.730806)+c.x)+(((((((((((.698559+(((cos(t)+((c.x+(c.x*-.095980*(((((-.167306+c.y)*(c.y+(c.y*c.y*(((cos(t)+((c.y+(((-.553660+(c.y+cos(t)))+(c.x*(cos(t)+sin(t)*(((c.y*((-.928092*(cos(t)*(.596897*((((.993210*c.y*(c.x+cos(t)*c.x*.532010*c.y*cos(t))*-.140558+cos(t)*sin(t))+(-.307398+.162044))+(sin(t)+.024023*-.708489*(.949219+sin(t)))*(c.y*(sin(t)+(((((((sin(t)*c.y*c.x*(sin(t)*(c.y*-.102639*((sin(t)+.797540)+((c.y+.326100*cos(t)*((((c.x+c.y)*(((sin(t)+sin(t))+(c.x+c.y)*sin(t)*(c.x+cos(t))*((((((((((((c.y+c.x)+((((((((c.y*c.x*((((((((.322088+((((c.x*((-.458005+(c.x*(-.003046*c.y+(cos(t)+(((sin(t)+c.y*((.078509+(((((cos(t)+((sin(t)+(cos(t)*.217086*-.720421*(.476242+.734960)+(cos(t)+(-.062114+(((-.856690*cos(t)+(sin(t)*(c.x*((((((c.y+-.822080)*c.x*(c.y*(((((((sin(t)+(-.897690+(((cos(t)*((cos(t)+((((((cos(t)+sin(t))*(cos(t)+-.906462)+((.439447*(-.456948+c.y)+((.179527*-.809667*-.742229+cos(t))*(((-.638154+.727242)*(c.x*(((c.x*((cos(t)*c.x+c.x*((((c.y+-.880289)+c.y)+sin(t))*sin(t)+(sin(t)*(cos(t)+c.y)*-.392605*cos(t)*((((c.x*c.x*-.436619*c.y*(c.y+cos(t)*.606290*(((cos(t)+.505714)+.694070*(.753255+cos(t)))*cos(t)+((sin(t)+((sin(t)+((cos(t)+c.y*((((((.499283+((((-.220120+cos(t))+((.143944*(((c.x+((c.y*(c.y+cos(t))*c.x*(((((sin(t)*sin(t)*c.x*(((c.x+-.022092*((sin(t)*((c.y+cos(t))+(((cos(t)*c.x*(-.151970+((-.327288+((cos(t)+-.194398)*c.y+((cos(t)+c.y*((c.x*((sin(t)*(((((c.y*(c.y+-.246287)*((c.y*cos(t)*sin(t)*(((cos(t)+(c.y+((((sin(t)*(cos(t)+c.y)*cos(t)+c.y*((.751336*((sin(t)*-.355690*.004803+(c.x+(((((sin(t)+((sin(t)+(c.x+((-.621583+(((c.x+cos(t)*(c.y*-.990104+-.337003))+((sin(t)*(((((((cos(t)+((((c.x*((((((((.421870+c.y*(-.305427+((sin(t)+((((((.579762*(-.769026+sin(t)*(.183799*cos(t)+(.964603+-.063268)))+((c.x*c.y+((((((-.935830+.908065)*(((.618832*(c.y+.808769*c.y)*((((.384082+c.y)*(c.x*((((c.x+((((((c.y+((sin(t)*(c.y*((cos(t)*(sin(t)*((c.y*.051624*((-.333104+-.412133)+cos(t))*(cos(t)*((((c.x*(((cos(t)+c.y*-.596059)+c.x*(.799001+(c.y*sin(t)+c.x))*(c.x+(sin(t)*(((((.492778*((sin(t)*(((c.x*.020393*-.987543*c.y*(.530806*(((((c.x*sin(t)*(c.x*(.298895+((c.y+((cos(t)+cos(t))*-.601370*(((.701341*sin(t)+(-.876540+((sin(t)+(-.752097*((((((sin(t)+((((cos(t)+(sin(t)*c.x+cos(t)))+(c.y+(c.x*sin(t)+c.y*(c.y*-.702566+c.x*(c.y*(c.x*.080546*sin(t)*(cos(t)*cos(t)*((((((.235880+(c.y+(((-.254674+(((((sin(t)*c.x*(c.y+((((((((cos(t)+(sin(t)*(sin(t)+-.889469*sin(t)*cos(t)*.920582*(cos(t)+c.x)*c.x)*(((((((cos(t)+c.y)*(c.y+c.x*c.x*.297038*(((((((c.x+(c.y*((sin(t)+-.115400)+c.y)+(.699436*((((c.x+-.594687*(((((((((.846699+c.x*(((.050947+c.x*(cos(t)+(((((((c.y+((c.x*c.y*((sin(t)*(c.x+((cos(t)+sin(t))+((-.002102+((-.327833+(c.y+cos(t)))+c.y))+(.491140+c.x)*(cos(t)*sin(t)*-.771509+cos(t))*.081906*(.900147+cos(t)))))+sin(t))*cos(t)*(c.y+c.x)*(((cos(t)+c.x*.503100)+((cos(t)+sin(t))*(cos(t)+(((sin(t)+(-.209832*(((((-.562310*(-.176070+(((((c.x*(-.682673*(sin(t)*(c.x*cos(t)*((cos(t)+-.046524)+(c.x+(.969562*((-.803089+.090076)+(((((sin(t)+((((c.x+(-.518392*c.y*c.x*c.x+c.y))+-.818511)+c.y)+cos(t)))+-.418056)+c.y)*c.x*sin(t)*c.y+.705501)+sin(t))*c.x*cos(t))*.167951+.402800)))*c.y*sin(t)*c.y*c.y*sin(t)*c.x+.085033)*-.305806*sin(t)+cos(t))+-.740632)*c.x+-.156560)*sin(t)+c.x)+-.758222)+c.y)+c.x))+sin(t))+c.x)+c.x)+cos(t))+c.x)*.217953*-.363096*.553990+c.y)*cos(t))*cos(t)+c.y)+-.147566)*c.y*c.y*.000564)+c.x))+sin(t))*c.y*c.y*c.x+-.088714)*cos(t)+cos(t))+c.x)*sin(t))+c.y)+-.636091)+c.x)+-.788744)+sin(t))+sin(t)))*sin(t))+.016038)+sin(t))*c.x*sin(t))+cos(t))*c.x+-.048472)+c.x)+.689585)*cos(t)+cos(t))+sin(t))+sin(t))+cos(t)))+sin(t))*c.y*c.y+.509658)*sin(t)+sin(t))*sin(t)+sin(t))))*.034729+c.y)+sin(t))*c.x+c.x)*-.030707+c.y)+.683002)+cos(t))*c.y*-.476026)+c.x)+cos(t))+cos(t))+-.934879)+sin(t))*.129109+c.x)*-.398240*sin(t)*.304680*c.y*-.117945*.833001+sin(t))*sin(t))*-.900189*-.326341*-.707420+c.y)+cos(t))+sin(t))+c.x)*cos(t)+c.y)+cos(t))+c.x)*sin(t)*c.x*sin(t)*.722576)+-.969994)*cos(t)+c.x)*sin(t)+-.619240)+c.x)+c.x)*.477796)+c.y)+.015405)*.795408))+.940965)*cos(t)+-.960389)*cos(t)+cos(t))+-.734095)+cos(t))*cos(t)*cos(t)*c.y+.532401)*cos(t)+sin(t))*-.589021*sin(t)*c.y*sin(t)+-.072169)*c.x)))*.900720)+cos(t))+.008014))+c.x)+-.369583)*cos(t)+cos(t))+sin(t))+cos(t))+c.x))+c.y)*c.y))+sin(t))+sin(t))*sin(t)+cos(t))*-.114972*cos(t))*-.494920+c.x)*.740030)*-.003128*c.x*sin(t)*.730001+sin(t))+.259050)*sin(t)*c.x+sin(t))+c.y)+c.x)+sin(t))+-.602793)+-.770827)+.804303)+sin(t))+c.y)*cos(t)*-.853122+-.907988)*sin(t)*c.x*.562479*sin(t)+c.x)+sin(t))+c.y)*c.y*.705294+sin(t))+.744207)+c.y)*c.y*-.501893))*c.x+.051981)*c.x+c.y)*.097752+c.y)+sin(t))+sin(t))+sin(t))*.069000*c.x+c.y)*.849824*cos(t)*.787803+sin(t))*sin(t)+cos(t))*.920902+.736891)*c.x+c.y)*cos(t)*c.x+sin(t))*cos(t)+-.903722)+c.x))*c.y*.568475+-.803921)+c.y)*c.y*sin(t)+.515130)*.009826+.401684)+sin(t)))+c.y)+cos(t))+c.y)+c.y)*.301520*c.x+-.999180)*cos(t)+c.x)+sin(t))*cos(t)*cos(t)+.213613)*cos(t)+sin(t))+sin(t))+-.795382)+sin(t))+cos(t))*c.y*c.x+c.x)+c.x))+sin(t)))*sin(t)*cos(t)*-.308524*-.811728+c.x)+sin(t))+c.x)+sin(t))*c.x*c.x+sin(t)))+.030773)*.002065))+-.803030)+c.y)*sin(t)+c.x)*.443320+c.x)*-.336874+c.y)+-.479880)*c.y+.007118)*.123340+c.x)*cos(t)*sin(t)*-.306195+c.y)+c.x)+sin(t)))+c.y)+.223667)*.082443+cos(t))*c.x+c.y)+cos(t))*c.x*sin(t)*c.y*cos(t)*c.x*.225583*-.972016+.035630)*c.y*c.x+c.y)+.966424))*.462764*.027670+.690585)*-.070207*sin(t)*.091343)*cos(t)+.016405)))*c.x*c.y+-.852930)*cos(t))*-.408712+c.y)+cos(t))*c.y+sin(t))+-.730239))*sin(t)*c.x*c.y)+sin(t))+.001028)+sin(t)))+.926333)+sin(t))+cos(t)))*-.518999)+c.x)+.061220)*c.x*cos(t)+cos(t))+sin(t))*sin(t)*sin(t)+-.021701)+sin(t))*sin(t)*-.635035*-.234470+.185097)+c.x)+cos(t))+.301945)*cos(t)*.735073+c.x)*sin(t)*c.y+-.860309)*c.y*.146707*cos(t)+.457213)*sin(t))+.525544)))+sin(t))*c.y)+c.x)+cos(t))+.130193))+sin(t))+c.x)*.124730)+.265882)+c.x)*c.y*sin(t)*.084649*cos(t)*cos(t)+-.166139)*c.y+.099660)+c.x)+c.y)*c.y*sin(t)*cos(t)*sin(t)+c.y)*sin(t)+.094770)+sin(t)))+c.y)+cos(t))+c.y)+-.150139))*-.211377+c.y)+c.y))+.336148)*.661600+c.x)+c.x)+c.x)+c.y))+sin(t)))+c.x)*cos(t))*c.x+-.308893)*-.810916*c.x)*c.x*.620737)*-.665852*cos(t)*cos(t)+sin(t))+-.082080)*.009152*cos(t)+sin(t))+.267800)*cos(t)*cos(t)*sin(t)*-.044205*.892541+.630110)*c.x*sin(t)))*cos(t)+-.822264)*cos(t)+c.y)+-.986912)+c.y)*.044357*cos(t)*cos(t)*c.y+sin(t))*-.247706+cos(t))+sin(t))*c.y*-.773110*-.935902+-.775545)*c.x*sin(t)*cos(t))+c.x)*sin(t))+sin(t))+c.y)*c.x+c.y)+.827233))+c.y)+-.570695)+sin(t))+c.x)*-.655874*c.y*-.237775)*sin(t)*sin(t))+sin(t))*-.403032+sin(t))*cos(t)+sin(t))*-.217552*.783473*-.144358+cos(t))+c.x)+cos(t))*sin(t)*c.y*sin(t)*c.y*c.y+sin(t))*cos(t)*sin(t)*-.400934*c.x+c.x)+c.x)+cos(t))*-.640171+.207417)+-.704030)*c.x+sin(t))*-.817445*.701810*c.x*cos(t)+-.303700))*c.y+sin(t))+c.x)))))*cos(t)+cos(t)))+sin(t))+.994998)+c.y)+sin(t)))*sin(t)+sin(t))*c.x*sin(t)*-.370621)+sin(t))+-.986253)*c.x))*cos(t)*-.353104+-.593435))+c.x)*cos(t)+-.166597)+cos(t))+c.y)+-.139184))*.125480*sin(t)*c.y*-.330097*cos(t)+c.y)+c.y)+c.y)*cos(t)+.988424)*.795419*sin(t)*c.x*c.x+sin(t))*.618393+c.x)*c.x+c.x)+.174616)*c.x+sin(t))+c.y)*cos(t)*cos(t)+cos(t))+c.y)+sin(t))*sin(t)+.458408)+c.x)*c.y*sin(t))+-.037709)+c.y)+sin(t))*-.007251*.681727+.456403)+c.x)*sin(t)+cos(t))+c.x)*cos(t)+c.x)*-.868529+.495940)+sin(t))*c.y*c.x)+c.x)+c.x)+.060907)+.265180)*cos(t)*c.y)*c.x+c.x))+cos(t))*.772492*.007468*.080709+c.y)+sin(t))*c.x+.706036)*sin(t)+c.x)*c.x+-.856617)+.423162)+.288961)*c.x*c.x*sin(t)*cos(t)*.050024+sin(t)))+cos(t)))*cos(t)*.174940+-.027156)*-.070271*.810426*sin(t)+-.278167)+.708340)*-.053620+.418450)+c.y)+c.x)+cos(t))*sin(t)+-.200599))+.405704))+c.x)*c.y)+c.x))*cos(t)+sin(t))+-.057228)*.310105*cos(t)*c.y+sin(t))*c.x*cos(t))*c.y+cos(t))*-.868370+.339438)*c.y+sin(t))*cos(t)+c.y)+c.x)*c.y)*cos(t)*-.725560+.079002))+.808604)+c.x))*c.x+-.257091)+c.y)*c.x+cos(t))+c.x)+c.x)*c.y*sin(t)+c.x)+sin(t))*sin(t)+-.380748)+c.x)+cos(t))*c.x*-.780000)*cos(t))+.965082)+sin(t))*c.y+.218283)*c.x*c.x+c.x)+-.991460)+c.x)+sin(t))*-.027698*sin(t)+c.x)+.895994)+sin(t)))+sin(t))*cos(t)+c.x)*c.y+c.x)+c.y))+sin(t))*-.389229+cos(t))+.954527)*c.y+sin(t))+c.x)+c.x)+.417610)+-.258874), c.y); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-hmm3.fs b/res/shaders/glsl330/generated-hmm3.fs new file mode 100644 index 0000000..d247718 --- /dev/null +++ b/res/shaders/glsl330/generated-hmm3.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1742565130 +// EXPR_CUTOFF: 4096 +// TERM_CUTOFF: 2147483648 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +float z = 10; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution*2*z - z; + float t = time*0.25; + + vec3 g = vec3 ((cos(t)+c.y), .664112, (c.x*(((((-.200646+(c.y*((c.y*(((sin(t)+((c.y+c.y)*(c.y*c.y*((((cos(t)+sin(t))+cos(t))*(sin(t)+-.403600*cos(t))+.580315)*(c.x*((((sin(t)*(c.x+c.x)*((.229580+(sin(t)*c.x*(sin(t)*((c.x*.400079+(((-.234840*sin(t)+((.535534+(c.x+(((((((cos(t)*(c.y*((cos(t)*c.x*(cos(t)+c.x*((sin(t)+((((sin(t)+(-.045340+(sin(t)+.711215)))+(((sin(t)*cos(t)*c.y*(cos(t)+c.y)+(-.810959+-.200193))+.034611*((.451784*(((sin(t)+(-.338453+((c.y*(c.y+-.489700)*(((cos(t)*sin(t)*-.054489*c.x+c.x*((.829534+((((c.y+((((.691380+c.y*-.400630*(cos(t)*.005466*sin(t)+c.y*((((sin(t)+(cos(t)*.028773+cos(t)))+(c.x+((-.720054*-.256433*((sin(t)+.712002*((((((c.y+((cos(t)+.260807)+(sin(t)+sin(t))*(-.860299+.367407)*(((cos(t)+((((sin(t)+((c.x*sin(t)+(((((sin(t)*(.714595+(c.y*-.284895+(c.y+(.001485+(((c.y+(c.x*((((((.698078+(((c.x+(c.x+c.x)*(c.y*(((-.279050*cos(t)+(cos(t)*(((-.044969+c.x*(((c.x*((cos(t)+((-.415161*c.y+(sin(t)*(((((((((c.x+(((((-.950652*sin(t)+((-.023405+((((((-.909400+(c.y*(.643193+((-.992613*((((((cos(t)+(c.x*(.250024*cos(t)+(c.y+(-.129656*sin(t)*((.801073+c.y*((.094940*((c.x+(-.924747+c.y*-.703433)*cos(t)*((-.931169*-.380809+-.825973)+(((sin(t)+c.y)*(-.586404+(c.x+(((c.y+c.x)+(((((cos(t)+(-.303300*.860109+((-.998397+sin(t)*sin(t))+sin(t)*(.565292+sin(t)*(-.042492+((c.y*cos(t)*-.470811*(.967360+((((.567374+c.y*((cos(t)*.392096+((-.321607+(((c.y*(cos(t)*.839036+.029795)+((((((c.y+((sin(t)+(c.x*(.804260*sin(t)+((((sin(t)+(cos(t)+(c.x*((sin(t)+c.y*(sin(t)*(((c.x*(cos(t)+sin(t)*((c.x+(-.899001*((((((.701743*(sin(t)+(c.x*c.x*cos(t)*cos(t)*-.339850*c.x*c.x*((c.x+-.618203)*((((c.y+cos(t))+c.y)+cos(t))+(.621038+(((.533975+(cos(t)+((((((((c.x*c.x+(.251492+(.878305*((sin(t)+(((sin(t)+-.723678*cos(t))*(cos(t)+((((((-.573700*(((c.x+(((sin(t)*((((((((((c.y*.609744+cos(t))*.072348*(((-.976820+(((((c.x+cos(t))+((sin(t)*(.029886*((((((c.y+sin(t))+-.515835*(c.y+(sin(t)+((((((((((c.x*(-.477265+-.379722*((-.179000*(c.x+(-.201670+c.y*.625544*.140360*((sin(t)*((((.320754+(((((((c.x+(cos(t)+cos(t))*(((((cos(t)*(.750080*-.120379*sin(t)*(((((-.197005+.491207*cos(t)*-.127198)+cos(t)*-.514078)*.445400*.542424*((((cos(t)+.870302)*c.x*(((-.322307+c.x*sin(t)*(c.y+(c.x+c.x*c.x))*((cos(t)*cos(t)*(sin(t)*(sin(t)*(.354150+.510621)*-.520270*cos(t)*c.y*(((cos(t)*c.y*((sin(t)+c.y*((c.y*(cos(t)*(c.x*cos(t)+((sin(t)*(.144758+(c.x+-.620906))+-.905651)+(((cos(t)+(-.202282*(((cos(t)*(-.768376+(((c.y+((-.872097*(((-.400074+(((cos(t)+(((c.y+((.662568+(((((-.039925+((-.706960+c.y)+(sin(t)+(((((sin(t)+(c.x+(c.x+cos(t))))+-.395181)+(-.310649+c.y*(cos(t)+.044210)*c.y*(-.317080+((((((sin(t)*(cos(t)+cos(t)*(c.y+(((((cos(t)*c.y*(sin(t)+(((sin(t)+c.y)*((.128090+.509113*(c.y+(-.314620+cos(t)))*cos(t))+cos(t))*.762209*((((cos(t)+((((((((.859764+(cos(t)+((sin(t)*(sin(t)+c.y*-.255781*(((((sin(t)+cos(t)*c.y)+sin(t)*c.y)+cos(t))+sin(t)*-.654795)+(((c.y+(-.596603+((((-.494160+c.y)*-.768233+cos(t)*((cos(t)*(sin(t)*(cos(t)*((((((c.x+-.089788)*(((.432068*c.x*(-.140727+(((c.y+(c.x*((c.x*.605646+.689507)+.678888*(c.y*((((sin(t)+((-.220878*(((c.x*c.y*cos(t)*((.099105*cos(t)*((((sin(t)*.400791+c.x*(c.x+(cos(t)+(c.x*.035827+(c.x+((((((-.670692+cos(t))+c.x)+-.206379)+c.x)+-.986120)*sin(t)*c.x+c.x))))*sin(t)*cos(t)*.465560*sin(t)*sin(t)))+sin(t))+-.054065)+-.160370)*.621178*.090500*c.x+sin(t))*sin(t)+c.x)*c.y+c.y)+c.x)+.273490)+sin(t))+.066944))+.768409)+-.062175)+c.x)*-.905304*.339025*-.059118+.038706)*sin(t))+sin(t)))*cos(t)*-.264276+cos(t))+c.x))*.871410+c.x)*sin(t)*-.407570*c.x+c.x)+-.662020)*-.841928*c.x+c.x)+c.x)*c.y+sin(t))+c.x)+cos(t))+.930122)*c.x+c.y)*.520201*c.y*c.y+.926401)*c.y+.869739))*.994705+c.y)+.624631)*c.x))*cos(t)*c.x+c.x)*c.x+-.167140))*-.479723*c.y)*.883062+c.x)*-.583630+c.x)*c.x*.100428))*c.x+sin(t))*.864250*c.x*.626206+cos(t))+.113502)+-.052907)+c.x)+c.y)+sin(t))*.922080)+sin(t))*cos(t)+-.803302)*cos(t)+.800415)*-.501708*c.y*-.474286*c.x+cos(t))*c.x*-.701862+c.x))*c.y*c.y+c.y)+-.570898)+-.616475)*cos(t)*.004807+-.727060)+-.933158))*sin(t))+c.y)*sin(t)+c.y)+c.x)*sin(t)+-.362098)+cos(t))+c.x))*cos(t)*sin(t)*.060255))*c.x+cos(t))*sin(t)*c.x+cos(t)))*cos(t)*c.x)*.737791)+c.x)*c.y+c.x)*.850009*sin(t)+-.719065)+sin(t))*-.960903)*sin(t)*-.834833*cos(t)+.025030))*.215266*cos(t)+sin(t))+sin(t))*.914051)+sin(t))+.102305)*sin(t))+c.x)+cos(t))*-.094921*cos(t)+-.079463)+c.x))+c.x)+c.y))*c.x+c.x)+.325108)+.052112)+c.y)*.420700*cos(t))*-.613829+c.x)*c.x+.368596))*-.005954)+.086780)*sin(t)*c.x+cos(t))+c.x))+sin(t))+-.308927)*sin(t)+c.x)+.912599)*sin(t)*cos(t)+c.y)+.847979)*-.700785+-.081020)+c.y)*-.069055)*c.x+c.y)*c.y+c.y)*sin(t)+sin(t))*c.x+sin(t))+c.y)*cos(t)+c.y)*-.604610*.055979+-.160090)+cos(t))*c.y*c.y*cos(t)+cos(t))*c.y+c.x)+sin(t))+c.y)+c.x)+.690760)*.870630)*.051648*c.y*-.894280*c.x+sin(t))*cos(t)+.088490)+c.y)+-.392897)*c.x*-.729796+sin(t))+cos(t))*-.863646)+.065243)*.846574*.930918+sin(t))*c.y+-.993850)+c.y)+c.y))*.127778)*sin(t)+c.x)+c.y)*cos(t)*c.x)+-.725010)*sin(t)+.044070)*c.y+.763072)+c.x)*cos(t)+sin(t))+.010929)*.133940*c.y+cos(t))+sin(t))+.991046)+c.x)))*.487768)*-.116404+c.y)+sin(t))+.075060)*c.y*c.x*cos(t)+c.x)+-.724720)+-.537614)+c.x))+sin(t))+c.y)+cos(t)))+c.x)*-.895052*-.859902+cos(t))*cos(t)*c.x*cos(t)+.535623)*sin(t)+-.097496)+-.599547)+.690384)+-.088070)*-.950600*-.900167+cos(t))+-.536076)+sin(t))+sin(t))*.308576*c.x*cos(t)+cos(t))+sin(t))+c.x))+c.y)+c.y)+-.012850)*-.369005*-.389073+c.x)+cos(t))*-.806609*-.072111+sin(t))*c.x+c.y)+.927456))*c.x+c.y)+c.y))+sin(t))+c.y)*c.y))*cos(t)*c.x*c.x*sin(t)+.060097)+c.y)+sin(t))+-.380851)*-.041006+c.y)*c.y+sin(t))+c.y)))+cos(t))+c.y)))*cos(t)*sin(t)+sin(t))*-.960610*c.y*.839475+c.x))*c.x*-.870589+c.y)+cos(t))+c.y)*sin(t)+c.x)*sin(t)+sin(t))*-.501490*-.629686+cos(t))*sin(t)*-.266040*sin(t)*sin(t)+c.y)*sin(t)*c.x*c.x)*-.790556*cos(t)+c.y)*-.859248*c.y)*c.x*c.x+sin(t))+c.y)+-.600647)*sin(t)+.228968)*c.y*cos(t)*c.y)*c.y+c.x)+-.011502))*c.x*c.y*-.752350*c.y)+sin(t))+c.x)+c.y))+.510621))*-.506399+sin(t))*sin(t))+.593512)+c.x)*-.618560*-.006833+c.x)+c.y)+-.866018))+cos(t))+.000957)*-.390954*c.x*c.y)+c.y))*c.y*c.y+-.012303)*c.y*c.x)*-.487570+-.271499)+cos(t))*-.232452*.180755+c.x)*-.281561*c.x*.824067)+c.y)*-.507661+c.y))*cos(t)*cos(t)*c.y*c.x)*-.768690*c.x)*c.y*sin(t)*-.425026))+-.500338)+sin(t))*sin(t)+-.100425)*-.965290*.606004+cos(t)))+-.937137)*-.135305*.865960*.085404)*c.x*-.099090*.210057)*c.x*cos(t)*cos(t)*-.082009+c.x)*-.509590*cos(t)+.085770)))+cos(t))*c.x*cos(t)+.915786)+-.428327)*c.x)*c.x*cos(t)+c.x)*c.y*.489448+cos(t))))*sin(t)*cos(t)+sin(t)))*sin(t)+c.x)*cos(t)*sin(t)*c.y+.272665)+-.802386)*sin(t)*c.y+sin(t))+cos(t))*c.x*.355067*-.312650+sin(t))*c.x+c.x))*-.869474+c.x)*.990366)+-.614210)+sin(t))+c.x)*c.x+c.x)+cos(t)))*c.x*cos(t)+-.421558))*c.x+-.700900)+c.y)+c.y)*c.x*c.y+cos(t)))+.760083)+.058525)*cos(t)*-.055092+.326794)+sin(t))+cos(t))+sin(t))+sin(t))*c.x*.438858+sin(t))+c.x))*cos(t)*.701723+c.y))*cos(t)+c.x)+sin(t))*cos(t)+cos(t))+cos(t))*-.070582)*cos(t)+-.993100)*cos(t)+cos(t))*c.y+c.x))+-.397985)+cos(t))+sin(t)))+-.344238)+cos(t))*cos(t))+c.x)*c.x*-.148313*-.764702+cos(t))+c.x)+-.673460)*c.x*sin(t)+sin(t))*sin(t)*-.112978+c.y))*-.048424*c.y+cos(t))*sin(t)+c.y))))*c.x*-.278280*.752641)*sin(t)+.640314)+sin(t))+c.x)*.020948+.349511)+sin(t)))+sin(t)))+c.x)+c.x)+sin(t)))+c.y)+cos(t))))*.354229+-.235075)+.744149)+.629940)*cos(t)+c.y)+sin(t))*-.652138*sin(t))*c.y+c.x)*c.x+-.791476)+c.y)*cos(t)*c.y*c.x)*c.x*-.610150)+cos(t))+cos(t))*c.x*-.615390*.111964*c.x)*c.y*cos(t))+.533047)+c.x)+cos(t)))*sin(t)+cos(t))+cos(t))+sin(t)))+sin(t))*sin(t)*c.x)+.008813)*c.y*c.x+c.y)*-.040472*c.y*-.645569*c.y+cos(t))+-.841983))*c.y)*c.x+-.774567)+c.y)*cos(t)+c.x)*c.y+c.y)*sin(t)*.005710)+c.y))+c.x)+c.x))+sin(t))*sin(t)*c.y)+.237190)+cos(t))*cos(t)+c.x)+sin(t))*c.y+-.939437)+cos(t))*c.y*.305022*c.x*cos(t)+c.x)*c.x+c.x)+c.y)+cos(t)))*c.y)*cos(t)+sin(t)))*.386690+c.y)+cos(t)))+c.x)+.186201)*c.x*c.x+-.282137))+sin(t))*-.887908+c.y)+-.894713)+c.y)*c.x+-.977028)+c.y)+.016106)*c.y*c.x*c.y*c.x+-.199358)*.917841+c.y))*cos(t)+cos(t))+-.341444)+cos(t))+.910280)+c.y)*c.y*c.y)+cos(t))+cos(t))+sin(t))*sin(t)+cos(t))*.376097+c.y)); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-nice.fs b/res/shaders/glsl330/generated-nice.fs new file mode 100644 index 0000000..cd621ad --- /dev/null +++ b/res/shaders/glsl330/generated-nice.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1747246260 +// TERM_TRESHOLD: 128 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; +uniform float zoom; + +out vec4 color; + +float z = zoom; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution; + float t = time*0.25; + + vec3 g = vec3 (((m.y + (tan(((.045822 - sqrt(abs((c.x + ((((((m.y - (cos((sin(c.x) - ((((sqrt(abs(((sqrt(abs(((sqrt(abs(((sqrt(abs((sqrt(abs(((((sqrt(abs((((((((((((sqrt(abs(((sin(t) - (((m.x*(((((sqrt(abs(sqrt(abs(((((((((sqrt(abs((((tan((((m.x + m.x) + sin(t)) + .535096)) + sin(t)) - c.y)*m.y - .234450))) + c.x) + c.x) + m.x) + sin(t)) + m.y) + .408370) - m.x)*m.x*sin(t) - m.y))))) + m.y) + c.x) + sin(t)) + m.x) - .289684) + m.y)*c.x - sin(t)) - sin(t))*m.x)*.157970 + c.x))) + m.x) + c.x) - c.x) + m.y) + m.y) - sin(t)) - sin(t)) - sin(t)) - m.x)*.312378 + sin(t))*m.y + c.x))) - c.x) - .474879) - m.y)*sin(t) + m.x))) - m.x))) + sin(t)) - c.x))) + c.y) + c.y))) - c.x) + sin(t)))) + c.y) + m.y)*m.y + sin(t)) + m.y))*m.y) + c.y)) + sin(t)) - c.x) + sin(t)) + m.y) - m.y))*m.x*sin(t)))) - sin(t)))*m.y - m.x)) + c.y)*c.y, (sin(t) + ((cos(((((.272845 + (sin(sqrt(abs(((((((sin(cos(((((sqrt(abs(((((cos(cos(sqrt(abs(((m.y + (m.y - ((((((((sqrt(abs(sqrt(abs(((sqrt(abs(sqrt(abs((((((((((((cos((((sqrt(abs(((((((sqrt(abs(((((.086740 + sin((tan(((.706072 - .012211)*sin(t)*c.x + m.y)*.279510) + m.x))) + sin(t)) - .594132)*c.x + m.x))) + m.x) - m.y) + m.y) + m.x) + .449647) - m.x))) + sin(t)) + m.x)*m.y*.919366*sin(t) - m.x)) + c.y) + c.x) + m.y)*sin(t) - c.y) - m.y) + m.y) - m.x) + .364384) - sin(t)) + m.x) + sin(t)))))) + sin(t))*m.x + .008231)))*.184896)) - sin(t)) - sin(t)) + c.y) + sin(t)) - c.y)*sin(t)*m.y - .990513) + sin(t)) + c.x))) + sin(t))))*m.x*m.y)) + m.x) - m.x) - .642131) + m.y))) + sin(t)) - .132091) + .312406) + m.x))) - sin(t)) - m.x) + m.x)*m.y + m.y) + m.x) - c.y)))) + .506414)*c.x) - m.y) - m.y) + c.y)) + .131707) + m.x)), ((sin(t) + sqrt(abs(tan(tan(((sqrt(abs(((tan((((cos((sin(t) + ((((((sqrt(abs(.303088)) - ((((((c.y + (sqrt(abs(tan((((((tan(m.y*m.x) + ((((tan(((((sqrt(abs((sqrt(abs((((((c.x + (((((((tan(tan(((sin(cos((((sqrt(abs(cos((sqrt(abs(.199314)) - m.x)*sin(t))))*sin(t) - c.x) + sin(t))*m.y + c.x))*c.x) + sin(t)) - c.x))) + m.x) + m.x)*m.x + sin(t)) + sin(t)) + m.x)*.580237 + c.x) + c.y)) + m.y) - c.y) + sin(t)) + .032756)*m.y)) + .578948))) + c.y) + m.x) + .400509) + c.y)) - sin(t)) - sin(t)) - c.y) + sin(t))) + m.y)*.722005 + c.x) + c.x) + .920902)))) + sin(t))) + .071000) - sin(t)) + m.x) + .540271) + m.x)) + c.x) - .900145) - sin(t)) + m.y) + c.x))) + m.x) - .900250) + sin(t))) + c.y) + sin(t))*sin(t))) + m.x) + .243397)))))) + m.x)); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-wobble.fs b/res/shaders/glsl330/generated-wobble.fs new file mode 100644 index 0000000..ed0a639 --- /dev/null +++ b/res/shaders/glsl330/generated-wobble.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1747246528 +// TERM_TRESHOLD: 128 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; +uniform float zoom; + +out vec4 color; + +float z = zoom; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution; + float t = time*0.25; + + vec3 g = vec3 ((((((((((c.y + tan((((sin(((sqrt(abs(((((((sqrt(abs(m.y)) + ((tan(((((.239340 + ((sin((((tan((((((((sqrt(abs(sin(tan(((((((((.621734 + .530729) - (((((((c.y + c.y) - sin(t))*sin(t)*m.x*.643835 + .281914) + m.y) - sin(t)) + sin(t)) + m.y)*sin(t))*.262949 + .652405) - m.x) + c.x) + .075129)*sin(t) + m.y) + m.y))))) - m.y) + c.y) - .660900) - sin(t)) + m.x)*.520123 + sin(t)) + c.y)) - m.x) + m.y) - m.y)) + m.y) - c.x)) + m.y) + c.x) + c.x)) + sin(t)) + .454358)) + sin(t)) + c.x) + sin(t)) + .102642)*c.y - m.x))) + m.y) + .186410)) - .730386) + .104269) + m.x))) - .259179) + m.y) + m.x) + sin(t))*m.y + .314064) + sin(t)) + m.y) + m.x), (sqrt(abs(c.y)) + (((sqrt(abs(((sin(t) - ((((((tan((sqrt(abs(((sin((cos((m.x*((((sqrt(abs((tan(((sin(t) + sin(t)) + (cos(((((.667957 + sqrt(abs(((c.x + sin((((((.174643 + (m.y + sin((sqrt(abs(((((sin(t) + m.x) - m.y) + .757088) + c.y))) + sin(t))))) + .051899) + sin(t)) - c.x) - .314323))) - c.x)))) - m.y) + m.y) - sin(t))) - c.y))) - m.y))) + sin(t)) + sin(t)) + sin(t)) - sin(t))*c.x + c.y)) + c.x)) + sin(t)) - m.x))) + c.x)) + m.y) + .572108) - m.x) + .253705) + m.x) + c.x))*sin(t) + sin(t)))) + m.x) + m.y) - m.y)), ((((sqrt(abs(((cos((sqrt(abs(((cos(sin(((cos(tan(m.y)) + (((((cos(tan(((((((((sqrt(abs(((sqrt(abs((((tan((sqrt(abs(m.y)) + tan(((((sin((sqrt(abs(((((((((cos(((((((sqrt(abs(((((((m.x + ((((((((((cos(sin(t)) + (sqrt(abs((((tan(((((sqrt(abs((((.436972 + .990908) + m.x) + m.y))) - m.x) - c.y) - c.x) + .033708)) + c.y) + m.y) - m.x)))*m.x - m.x)) - sin(t)) + c.y) + sin(t)) + m.y) + c.x) + m.y) + c.x) + .200380) - sin(t))) + sin(t)) - m.x)*m.y + sin(t))*m.x - sin(t))*c.x + c.y))) + sin(t)) + c.x) + m.x) + m.x) + sin(t)) - .750030)) - c.x) + m.x) - c.x)*sin(t) + sin(t)) - m.x) + sin(t)) + .011923) - .241355))) + m.x)*sin(t)*m.x) - .865170) - .980952) + m.x) + sin(t))))) + .806090) + sin(t)) + c.x))) + sin(t)) + sin(t)))) + c.x) + c.x) + m.y) + m.x) + sin(t))*.651159 + c.x) + m.y) - m.y)))*m.x + m.y) + .632397) + c.x)*.391023*m.x - c.x) + .808001)) - c.x)*m.x)) - .571352) + .106317)*m.y)) + m.x)*sin(t)) - m.x) + .581900))) - c.y) - m.y) + c.x) - sin(t))*sin(t)); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated-wow.fs b/res/shaders/glsl330/generated-wow.fs new file mode 100644 index 0000000..ec6ca14 --- /dev/null +++ b/res/shaders/glsl330/generated-wow.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1747245706 +// TERM_TRESHOLD: 128 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; +uniform float zoom; + +out vec4 color; + +float z = zoom; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution; + float t = time*0.25; + + vec3 g = vec3 (((((cos((tan(((cos(((((((cos(((((c.x + (((((sqrt(abs((((cos(sqrt(abs((sqrt(abs(tan(sin((((((((m.y*(sin((((((((((sqrt(abs((((cos(((sqrt(abs(cos(c.x))) + ((((sqrt(abs(((m.y - ((((((.923344 - (.949094 + m.y)) + m.x) + sin(t)) - m.y)*m.x - sin(t)) + c.y)) - m.x)*sin(t))) - m.y) + m.y) + m.y)*m.y - sin(t))) - m.x)) + m.x) - sin(t)) + m.x))) - sin(t)) - m.x) + sin(t)) - .112088)*c.x - m.x) + .233916) - c.y) + m.x) + sin(t))) + m.x) + sin(t))*c.y*m.x + c.x) + .190365) - .887840) + sin(t)) + m.x) + m.y))*.291275))) - sin(t))))) + .287723) - m.x) - sin(t)))) - m.y) + sin(t))*c.x + m.y) + m.y) + .830306)*m.y*sin(t)) + c.y) + c.y)*m.y + c.x)) + m.x) - c.x) + m.x) - sin(t)) + c.y) + c.y)) + c.x) + c.y))*c.y*c.y + m.x)*.256283) - .585881) + .177134) + m.x) + c.x), (((((((((sqrt(abs(sin(((((((((cos((sqrt(abs((((((((((((sqrt(abs((((m.y - (sqrt(abs(m.x)) - sin((((((((m.x + ((((m.y - (((((((c.x + (((((((((m.x + .018174) - cos(sqrt(abs(((tan(m.x) - .689349) + m.x))))) - .420239) + m.x) + m.x) + sin(t)) + m.x) - m.x) + m.x)) - m.y)*sin(t) + sin(t)) + c.x) + .142664) - m.y) + m.x)) + c.x) + m.y)*.800054 - c.y)) - .509630) + m.y) - c.y) - sin(t))*m.x + .447933) - .237243)))) + m.x) + m.y)))*.733285 + c.x) - m.x) + m.x)*sin(t) + m.x) + .100814) + m.y) - m.x) - m.x) + sin(t)) + m.x) + .907417))) + m.y))*.388498 + sin(t)) + .016879) + c.y) + sin(t)) + .905070) - c.x) - c.x) + m.x)))) + .531642) - sin(t)) + m.y) + m.y) - .722737) + sin(t)) - c.y) - m.y) + m.x), sqrt(abs((m.x - tan(tan((sqrt(abs((((c.x - (((((((sin(sqrt(abs((sqrt(abs((((((m.y - (sin(((((sqrt(abs(((((sin(t) + (((((((((((((sin(t) - ((((((c.y*(((m.x + .127801) - (sqrt(abs((sin(t) + m.x))) + .900278)) + m.y)*m.y - m.x) + .191150) - m.x) + c.y)*sin(t) + .760660) + m.y)) + m.x) + m.y) - .470661) + .239425) + m.x) + m.y) - .085803) + m.x) - m.y) + m.x) + .304005) - .044509)) + m.x) + m.x) + c.x)*.156629)) - m.y) + m.x) - sin(t)) - m.x))*.501841 - m.x)) + m.y)*m.y + .098450) + m.x) - m.x))) + sin(t))))) - c.y) + m.y) + .005222)*m.y + m.x) + m.x) + .030531) + m.x)) + m.x) + c.x))) + m.x)))*c.x)))*m.x); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/generated.fs b/res/shaders/glsl330/generated.fs new file mode 100644 index 0000000..37581d2 --- /dev/null +++ b/res/shaders/glsl330/generated.fs @@ -0,0 +1,23 @@ +#version 330 core +// SEED: 1748126773 +// TERM_TRESHOLD: 128 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; +uniform float zoom; + +out vec4 color; + +float z = zoom; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution*2*z - z; + float t = time*0.25; + + vec3 g = vec3 (cos((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sin(sin(((((((cos(cos(sin(sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*(sin((cos(sin(((((cos(cos(sin(((((cos(sin(cos(((((((((sin((((cos(sin((((sin((sin(sin(((((4*abs(c.x) + abs(c.y))/2 + (((sin(((((cos(cos((((sin(((((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*(cos(sin(cos(((((cos(((4*abs(c.x) + abs(c.y))/2 + (4*abs(c.x) + abs(c.y))/2*cos((((sin(sin(.479279)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + (4*abs(c.x) + abs(c.y))/2)*.289721 + .167637))*(4*abs(c.x) + abs(c.y))/2))*(4*abs(c.x) + abs(c.y))/2 + cos(t)) + (4*abs(c.x) + abs(c.y))/2) + cos(t)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + .952904)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*cos(t)*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t))*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*.995362 + sin(t))) + .797029) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .297882))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + (4*abs(c.x) + abs(c.y))/2)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sin(t))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*.696260*(4*abs(c.x) + abs(c.y))/2*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))))*sin(t)*sin(t) + (4*abs(c.x) + abs(c.y))/2)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*(4*abs(c.x) + abs(c.y))/2 + (4*abs(c.x) + abs(c.y))/2) + sin(t))*(4*abs(c.x) + abs(c.y))/2)) + .766604) + sin(t))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + cos(t))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .017273) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .970978) + .699070) + (4*abs(c.x) + abs(c.y))/2)*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*(4*abs(c.x) + abs(c.y))/2 + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .406986) + sin(t)) + cos(t))*(4*abs(c.x) + abs(c.y))/2))) + sin(t))*sin(t) + (4*abs(c.x) + abs(c.y))/2) + (4*abs(c.x) + abs(c.y))/2)*(4*abs(c.x) + abs(c.y))/2 + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))))*(4*abs(c.x) + abs(c.y))/2 + .719017)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*sin(t) + .920947)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*(4*abs(c.x) + abs(c.y))/2 + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*(4*abs(c.x) + abs(c.y))/2*cos(t) + cos(t)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t)) + cos(t))*.998191))*(4*abs(c.x) + abs(c.y))/2 + sin(t)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)), ((((cos((cos(sin(t)*(cos(((((((((cos((cos(sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + cos(cos(((((cos((cos(t)*((((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + (cos(cos(((cos((((4*abs(c.x) + abs(c.y))/2 + (((sin((4*abs(c.x) + abs(c.y))/2)*sin(sin(cos((((sin(cos(((((cos(sin((sin((((((cos((((cos((4*abs(c.x) + abs(c.y))/2) + cos(((((cos(sin(sin(cos(sin(sin((((((4*abs(c.x) + abs(c.y))/2 + (4*abs(c.x) + abs(c.y))/2) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + (4*abs(c.x) + abs(c.y))/2) + sin(t)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))))*.880584*cos(t))) + (4*abs(c.x) + abs(c.y))/2) + sin(t)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .095497))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .993299)*cos(t))*.302128 + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*.525274*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .536368)*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*(4*abs(c.x) + abs(c.y))/2)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + (4*abs(c.x) + abs(c.y))/2) + (4*abs(c.x) + abs(c.y))/2))) + (4*abs(c.x) + abs(c.y))/2) + .738549) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sin(t))))*.144797*.469409*cos(t) + cos(t))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + cos(t))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*(4*abs(c.x) + abs(c.y))/2*cos(t)*.999180*sin(t)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sin(t)) + sin(t)) + sin(t)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .869467) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + cos(t))))*.917290)*cos(t))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*.720998*.447062*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + .795439) + .729296)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*cos(t)*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .991935) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + .369049) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*.939903 + (4*abs(c.x) + abs(c.y))/2)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + (4*abs(c.x) + abs(c.y))/2)) + .497989)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*.992813*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sin(t) + .069281), (((((((((((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sin(((cos(sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + ((sin(((sin((((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*cos((sin(((sin(cos(sin((sin(cos((4*abs(c.x) + abs(c.y))/2)) + ((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + cos(sin((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sin(cos(sin((cos(sin((((((sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + ((cos(t)*sin(((.939544*cos(((((((cos(t) + (4*abs(c.x) + abs(c.y))/2) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + (4*abs(c.x) + abs(c.y))/2) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*.696292*(4*abs(c.x) + abs(c.y))/2 + .953599)*.469231*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sin(t)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sin(t) + cos(t)) + (4*abs(c.x) + abs(c.y))/2)*sin(t)*cos(t)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + .430783) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + cos(t)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))))*(4*abs(c.x) + abs(c.y))/2 + .967582)))))))) + (4*abs(c.x) + abs(c.y))/2))))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t))*sin(t))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + cos(t))*(4*abs(c.x) + abs(c.y))/2 + (4*abs(c.x) + abs(c.y))/2) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))) + (4*abs(c.x) + abs(c.y))/2) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))))*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))*cos(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*.269989) + .196167))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)))*sin(t) + .969259)*.393199*(4*abs(c.x) + abs(c.y))/2 + .446291) + (4*abs(c.x) + abs(c.y))/2)*sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y)) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t)) + (4*abs(c.x) + abs(c.y))/2)*sin(t) + sqrt((m.x - c.x)*(m.x - c.x) + (m.y - c.y)*(m.y - c.y))) + sin(t))); + color = vec4 ((g + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/gradient.fs b/res/shaders/glsl330/gradient.fs new file mode 100644 index 0000000..d495c97 --- /dev/null +++ b/res/shaders/glsl330/gradient.fs @@ -0,0 +1,12 @@ +#version 330 core + +uniform vec2 resolution; + +out vec4 color; + +void +main () +{ + vec2 st = gl_FragCoord.xy/resolution; + color = vec4 (st.x, st.y, 0.0, 1.0); +} diff --git a/res/shaders/glsl330/line.fs b/res/shaders/glsl330/line.fs new file mode 100644 index 0000000..d7a8d48 --- /dev/null +++ b/res/shaders/glsl330/line.fs @@ -0,0 +1,27 @@ +#version 330 core + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +float +plot (vec2 st) +{ + return smoothstep (0.01, 0.0, abs (st.y - st.x)); +} + +void +main () { + vec2 st = gl_FragCoord.xy/resolution; + + float y = st.x; + + vec3 c = vec3 (y); + + float pct = plot (st); + c = (1.0 - pct)*c + pct*vec3 (0.0, 1.0, 0.0); + + color = vec4 (c, 1.0); +} diff --git a/res/shaders/glsl330/quadratic-bezier.fs b/res/shaders/glsl330/quadratic-bezier.fs new file mode 100644 index 0000000..cac602f --- /dev/null +++ b/res/shaders/glsl330/quadratic-bezier.fs @@ -0,0 +1,53 @@ +#version 330 core + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +float +quadratic_bezier (float x, vec2 a) +{ + float epsilon = 0.00001; + a.x = clamp (a.x, 0, 1); + a.y = clamp (a.y, 0, 1); + if (a.x == .5) + a += epsilon; + + // solve t from x (an inverse operation) + float om2a = 1 - 2*a.x; + float t = (sqrt (a.x*a.x + om2a*x) - a.x)/om2a; + float y = (1 - 2*a.y)*(t*t) + 2*a.y*t; + return y; +} + +float +line_segment (vec2 p, vec2 a, vec2 b) +{ + vec2 pa = p - a; + vec2 ba = b - a; + float h = clamp (dot (pa, ba)/dot (ba, ba), 0, 1); + return smoothstep (0, 1/resolution.x, length (pa - ba*h)); +} + +void +main () +{ + vec2 st = gl_FragCoord.xy/resolution; + float px = 1/resolution.y; + + // control point + // vec2 cp = mouse/resolution; + vec2 cp = vec2 (cos (time), sin (time))*0.45 + 0.5; + float l = quadratic_bezier(st.x, cp); + vec3 c = vec3 (smoothstep (l, l + px, st.y)); + + // draw control point + c = mix (vec3 (.5), c, line_segment (st, vec2 (0), cp)); + c = mix (vec3 (.5), c, line_segment (st, vec2 (1), cp)); + float d = distance (cp, st); + c = mix (vec3 (1, 0, 0), c, smoothstep (.01, .01 + px, d)); + + color = vec4 (c, 1); +} diff --git a/res/shaders/glsl330/random-fractal.fs b/res/shaders/glsl330/random-fractal.fs new file mode 100644 index 0000000..fdd36f3 --- /dev/null +++ b/res/shaders/glsl330/random-fractal.fs @@ -0,0 +1,26 @@ +#version 330 core +// SEED: 1742565130 +// EXPR_CUTOFF: 4096 +// TERM_CUTOFF: 2147483648 + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +// point 1: super smooth zoom-in zoom-out +float s = 1000; +float z = s*exp (-(sin (time*.1) + 1)/2*50); + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution*2*z - z; + vec2 m = mouse/resolution*2*z - z; + float t = time*0.25; + + vec3 g = vec3 ((cos(t)*c.y - 2), (cos(t)*c.x - 2), (c.x*(((((-.200646+(c.y*((c.y*(((sin(t)+((c.y+c.y)*(c.y*c.y*((((cos(t)+sin(t))+cos(t))*(sin(t)+-.403600*cos(t))+.580315)*(c.x*((((sin(t)*(c.x+c.x)*((.229580+(sin(t)*c.x*(sin(t)*((c.x*.400079+(((-.234840*sin(t)+((.535534+(c.x+(((((((cos(t)*(c.y*((cos(t)*c.x*(cos(t)+c.x*((sin(t)+((((sin(t)+(-.045340+(sin(t)+.711215)))+((.034611*((.451784*(((sin(t)+(-.338453+((c.y*(c.y+-.489700)*(((cos(t)*sin(t)*-.054489*c.x+c.x*((.829534+((((c.y+((((.691380+c.y*-.400630*(cos(t)*.005466*sin(t)+c.y*((((sin(t)+(cos(t)*.028773+cos(t)))+(c.x+((-.720054*-.256433*((sin(t)+.712002*((((((c.y+((cos(t)+.260807)+(sin(t)+sin(t))*(-.860299+.367407)*(((cos(t)+((((sin(t)+((c.x*sin(t)+(((((sin(t)*(.714595+(c.y*-.284895+(c.y+(.001485+(((c.y+(c.x*((((((.698078+(((c.x+(c.x+c.x)*(c.y*1+sin(t)))+-.344238)+cos(t))*cos(t))+c.x)*c.x*-.148313*-.764702+cos(t))+c.x)+-.673460)*c.x*sin(t)+sin(t))*sin(t)*-.112978+c.y))*-.048424*c.y+cos(t))*sin(t)+c.y))))*c.x*-.278280*.752641)*sin(t)+.640314)+sin(t))+c.x)*.020948+.349511)+sin(t)))+sin(t)))+c.x)+c.x)+sin(t)))+c.y)+cos(t))))*.354229+-.235075)+.744149)+.629940)*cos(t)+c.y)+sin(t))*-.652138*sin(t))*c.y+c.x)*c.x+-.791476)+c.y)*cos(t)*c.y*c.x)*c.x*-.610150)+cos(t))+cos(t))*c.x*-.615390*.111964*c.x)*c.y*cos(t))+.533047)+c.x)+cos(t)))*sin(t)+cos(t))+cos(t))+sin(t)))+sin(t))*sin(t)*c.x)+.008813)*c.y*c.x+c.y)*-.040472*c.y*-.645569*c.y+cos(t))+-.841983))*c.y)*c.x+-.774567)+c.y)*cos(t)+c.x)*c.y+c.y)*sin(t)*.005710)+c.y))+c.x)+c.x))+sin(t))*sin(t)*c.y)+.237190)+cos(t))*cos(t)+c.x)+sin(t))*c.y+-.939437)+cos(t))*c.y*.305022*c.x*cos(t)+c.x)*c.x+c.x)+c.y)+cos(t)))*c.y)*cos(t)+sin(t)))*.386690+c.y)+cos(t)))+c.x)+.186201)*c.x*c.x+-.282137))+sin(t))*-.887908+c.y)+-.894713)+c.y)*c.x+-.977028)+c.y)+.016106)*c.y*c.x*c.y*c.x+-.199358)*.917841+c.y))*cos(t)+cos(t))+-.341444)+cos(t))+.910280)+c.y)*c.y*c.y))))/(c.x*c.x+c.y*c.y))*.376097+c.y)); + vec3 h = sin (radians(90)*g); // point 2: fractalizer + color = vec4 ((h + z)/2/z, 1); +} diff --git a/res/shaders/glsl330/sandbox.fs b/res/shaders/glsl330/sandbox.fs new file mode 100644 index 0000000..dbf8f13 --- /dev/null +++ b/res/shaders/glsl330/sandbox.fs @@ -0,0 +1,21 @@ +#version 330 core + +uniform float time; +uniform vec2 resolution; +uniform vec2 mouse; + +out vec4 color; + +void +main () +{ + vec2 c = gl_FragCoord.xy/resolution; + vec2 m = mouse/resolution; + float t = sin(time); + + color = vec4 (.286523, sqrt(((sqrt(sin(sin(sin(sin(m.x)))))+sin(sin(.375898)))+sqrt(sin(c.x))))*sin(c.y), sin(sqrt(sqrt(sin(t)*sin(.758588))*sin((sin(t)+.222414))*sin(sin(sin(m.y))))), 1); + + // color = vec4 ((sin (time*2 + radians (0*90)) + 1)/2, + // (sin (time*2 + radians (1*90)) + 1)/2, + // (sin (time*2 + radians (2*90)) + 1)/2, 1); +} -- cgit v1.3