Deck.transition('daybreak',{dur:1.45,frag:` void main(){ float h=vUv.y+.19*pow(vUv.x-.72,2.); float v=p*1.25-.10-h; float k=smoothstep(-.035,.035,v); vec3 col=mix(texture(tA,vUv).rgb,texture(tB,vUv).rgb,k); col+=vec3(1.,.59,.24)*exp(-abs(v)*68.)*sin(3.14159*p); o=vec4(col,1.); }`}); Deck.scene({ id:'selectall',title:'Select all',enterWith:'daybreak', post:{bloom:.86,threshold:.97,vignette:.18,grain:.018,exposure:1,tone:'aces'}, beats:[{dur:4,hold:4},{dur:4.6,hold:4},{dur:5.2,hold:5}], notes:[ 'Up to now it has only been editing screens. Then it gets hands: robots, factories, factories that build factories. Farming economies doubled about every thousand years. Ours doubles about every twenty.', 'Once machines build the machines, the doubling time falls to a year, then to a month. That is not a new law of physics. It is what any copying process does when nothing holds it back. This part is my speculation, not a published forecast.', 'And there is a great deal of room. Everything our civilisation uses is about one part in twenty trillion of what the Sun puts out. So: select all.' ], setup(d){return {world:d.pass(` uniform vec2 uC; uniform float uR,uFill,uStar,uSpin,uShell; float oval(vec2 ll,vec2 ctr,vec2 dim,float tilt){ return (1.-length((rot2(tilt)*(ll-ctr))/dim))*min(dim.x,dim.y); } float landmass(vec2 ll){ float a=oval(ll,vec2(15.,7.),vec2(18.,40.),-.27); a=max(a,oval(ll,vec2(-1.,17.),vec2(17.,16.),.3)); a=max(a,oval(ll,vec2(68.,55.),vec2(76.,19.),.07)); a=max(a,oval(ll,vec2(12.,50.),vec2(21.,8.),-.22)); a=max(a,oval(ll,vec2(15.,64.),vec2(6.,10.),.48)); a=max(a,oval(ll,vec2(48.,23.),vec2(10.,12.),.7)); a=max(a,oval(ll,vec2(78.,24.),vec2(8.,16.),.12)); a=max(a,oval(ll,vec2(98.,34.),vec2(37.,15.),.18)); a=max(a,oval(ll,vec2(-3.,55.),vec2(3.,5.5),.4)); a=max(a,oval(ll,vec2(46.,-20.),vec2(2.7,6.),-.3)); a=max(a,oval(ll,vec2(-60.,-15.),vec2(18.,37.),-.28)); return a+(fbm(ll*.21)-.5)*9.; } void main(){ vec2 q=design(vUv),p=(q-uC)*vec2(1.,-1.)/uR; float rad=length(p),aa=1.4/uR; vec2 sky=q/9.;float sid=hash12(floor(sky)); vec3 c=vec3(.006,.009,.021)+vec3(.006,.009,.019)*vnoise(q*.003); c+=vec3(.52,.64,.82)*step(.981,sid)*(1.-smoothstep(.015,.145,length(fract(sky)-.5)))*(.45+.55*sid); float az=atan(p.y,p.x),edge=max(rad-1.,0.); float ray=pow(.5+.5*sin(az*29.+2.6*sin(az*13.)+.8*sin(az*53.)),8.); float rays=ray*exp(-edge*2.6)+.13*pow(.5+.5*sin(az*81.),4.)*exp(-edge*1.9); c+=uStar*vec3(1.4,.45,.076)*(.47*exp(-edge*5.)+.53*rays)*smoothstep(.96,1.,rad); float limb=.42+.58*clamp(dot(p,vec2(-.58,.8)),0.,1.); c+=(1.-uStar)*limb*vec3(.11,.52,1.1)*(exp(-edge*150.)+.13*exp(-edge*26.))*smoothstep(.97,1.,rad); if(rad<1.+aa){ vec3 n=vec3(p,sqrt(max(0.,1.-dot(p,p)))); vec3 g=vec3(n.x,n.y*.887+n.z*.461,n.z*.887-n.y*.461); vec2 ll=vec2(atan(g.x,g.z)+uSpin,asin(clamp(g.y,-1.,1.)))*57.29578; float land=smoothstep(-.6,.6,landmass(ll)); float terrain=fbm(ll*.42); vec3 earth=mix(vec3(.009,.024,.048),vec3(.043,.057,.056)*(.66+.68*terrain),land); earth*=.54+.74*max(0.,dot(n,vec3(-.6,.63,.49))); float density=vnoise(ll*.32)*.7+.3*vnoise(ll*1.4); float towns=pow(hash12(floor(ll*8.)),6.)*smoothstep(.45,.69,density); float artery=exp(-abs(vnoise(ll*1.6)-.5)*49.)*smoothstep(.52,.75,density); earth+=land*vec3(2.8,1.19,.28)*(towns+.34*artery)*smoothstep(.03,.30,n.z); float cloud=smoothstep(.56,.81,fbm(ll*vec2(.17,.42)+terrain*2.)); earth=mix(earth,vec3(.11,.15,.21),cloud*.35); vec2 grid=ll/vec2(4.9,2.65); grid.x+=.5*mod(floor(grid.y),2.); float id=hash12(floor(grid)+19.),tile=1.-smoothstep(-.025,.025,sdBox(fract(grid)-.5,vec2(.446,.413))); tile*=smoothstep(.035,.19,n.z); float on=smoothstep(id,id+.024,uFill*(.68+.36*land)); earth+=tile*on*mix(vec3(.49,.67,.89),vec3(1.55,1.66,1.73),id); earth+=vec3(.13,.48,1.2)*pow(1.-n.z,5.)*limb; vec2 sg=ll/vec2(8.8,5.8); sg.x+=.5*mod(floor(sg.y),2.); float si=hash12(floor(sg)+39.); vec2 st=fract(sg)-.5; float plating=(1.-smoothstep(-.018,.018,sdBox(st,vec2(.467,.45))))*smoothstep(si,si+.04,uShell); float fire=fbm(ll*.45+uTime*.035); vec3 core=vec3(4.8,1.84,.29)*(.72+.67*fire); vec3 metal=mix(vec3(.22,.025,.016)*(.55+.6*si),vec3(.99,.93,.81),smoothstep(.69,.76,si)); metal*=.34+.72*max(0.,dot(n,vec3(-.54,.58,.61))); metal+=vec3(.73,.22,.051)*exp(-abs(st.y+.415)*47.); vec3 sun=mix(core,metal,plating); c=mix(c,mix(earth,sun,uStar),1.-smoothstep(1.-aa,1.+aa,rad)); } o=vec4(c,1.); }`,'Orbital contact sheet')}}, draw(s,d,r){ const a=s.k(1,0,4.6),b=s.k(2,0,5.2),star=s.k(2,.95,2.8); const R=890-535*a-108*b-165*Math.sin(Math.PI*b); const X=1430-105*a+25*b+s.mouse.x*5, Y=1230-678*a-10*b+s.mouse.y*4; r.world.draw({uC:[X,Y],uR:R,uFill:.21*s.k(0,.5,4)+.85*a,uStar:star, uShell:.11+.92*s.k(2,1.45,5.2),uSpin:.13+.23*a+.37*b+.015*Math.sin(s.t*.16)}); const ctx=d.ctx2d; ctx.save();ctx.translate(X,Y);ctx.rotate(-.095+.056*b); const pad=R+18; ctx.globalAlpha=1-.62*b; d.select(-pad,-pad,pad*2,pad*2,{a:s.k(1,2.9,4.1)*(1-s.k(2,0,.9))+s.k(2,3.95,5.15)}); ctx.restore(); const L=d.E.lin; d.text('Farming economies doubled every thousand years.\nOurs, every twenty.',{x:126,y:107,size:72,font:'display',color:'#f5f0e6',show:s.k(0,.16,1.8,L),hide:s.k(1,0,.57,L)}); const h=d.text('Then every year.\nThen every month.',{x:126,y:345,size:89,font:'display',color:'#f5f0e6',show:s.k(1,.8,2,L),hide:s.k(2,0,.55,L)}); d.text('illustration',{x:130,y:h.y+h.h+30,size:30,font:'mono',color:'#aebdca',show:s.k(1,1.5,2.3,L),hide:s.k(2,0,.55,L)}); d.text('Select all.',{x:125,y:409,size:143,font:'display',color:'#fff3df',show:s.k(2,.95,2.1,L)}); } });