Skip navigation
vec3 f=vec3(.2,.4,1.5),p;for(float i,e,g,S,u;i++<50.;o+=exp(e*5e3-sin(vec4(4,3,2,0)*p.z-log(S)))/50.…
0:00 / 0:25

vec3 f=vec3(.2,.4,1.5),p;for(float i,e,g,S,u;i++<50.;o+=exp(e*5e3-sin(vec4(4,3,2,0)*p.z-log(S)))/50.…

yonatan

@zozuar39K followers

Visit on X
8,742 likesDownloadOriginal post

652,297 views #つぶやきGLSL

vec3 f=vec3(.2,.4,1.5),p;for(float i,e,g,S,u;i++<50.;o+=exp(e*5e3-sin(vec4(4,3,2,0)*p.z-log(S)))/50.){p=vec3((FC.xy-.5*r)/r.y*g,g)-i/3e4;mat2 M=rotate2D(t/8.);p.yz*=M*M;p--;p.yx*=M;S=5.;for(int j;j++<20;p/=u)S/=u=dot(p=2.*clamp(p,-f,f)-p,p);g-=e=p.z/S;} #つぶやきGLSL

10 Comments

Comments from the original post on X (Twitter)

  • yonatan's profile picture

    @zozuar

    live version:

    77 likes

  • Paul-emmanuel's profile picture

    @busyVar

    Shaders are some sort of biblically accurate programming.

    197 likes

  • Motus's profile picture

    @TheSecondBigga

    For some reason this invokes an impending sense of doom

    156 likes

  • Mike Hibbert's profile picture

    @MickeySoFine

    My mother had some curtains like this.

    80 likes

  • Curious Mind's profile picture

    @Kn0wing2Know

    vec3 f = vec3(0.2, 0.4, 1.5), p; for( float i, e, g, S, u; i++ < 50.0; o += exp(e * 5e3 - sin(vec4(4, 3, 2, 0) * p.z - log(S))) / 50.0 ){ p = vec3((FC.xy - 0.5 * r) / r.y * g, g) -i / 3e4; mat2 M = rotate2D(t / 8.0); p.yz *= M*M; p--; p.yx *= M; S = 5.0; for(int j; j++ < 20; p /= u) S /= u = dot(p = (2.0 * clamp(p, -f, f) - p), p); g -= e = p.z/S; }

    68 likes

  • Adrian Bisson's profile picture

    @Adrian_Bisson

    welcome to the peyote dimension

    61 likes

  • Matthias Hurrle's profile picture

    @softwaretogo

    Long version with mouse/touch enabled navigation. via @CodePen

    31 likes

  • Jeffrey Emanuel's profile picture

    @doodlestein

    Reminds me of those animations of protein synthesis in the body.

    28 likes

  • Sambhav Gupta's profile picture

    @sambhavgupta6

    Please tell me this is just gibberish and not an actual mathematical equation

    21 likes

  • B🜁RBELITH's profile picture

    @devcrvft

    You won the tweet sized shader contest!

    16 likes