Deck.transition('daybreak',{dur:1.4,frag:`void main(){ float front=1.05-p*1.15; float m=smoothstep(front-.03,front+.03,vUv.y); vec3 a=texture(tA,vUv).rgb, b=texture(tB,vUv).rgb; float band=exp(-abs(vUv.y-front)*26.)*p*(1.-p)*4.; o=vec4(mix(a,b,m)+vec3(1.,.72,.42)*band*.8,1.); }`}); Deck.scene({ id:'selectall', title:'Select all', enterWith:'daybreak', post:{bloom:1.0,threshold:1.0,vignette:.3,grain:.035,exposure:1.05,tone:'aces'}, beats:[{dur:4,hold:4},{dur:3.2,hold:4},{dur:4.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 { space:d.pass(`uniform float uZoom,uFar,uP1,uP2,uSun,uShell; uniform vec2 uM; const float PI=3.14159265359; void main(){ vec2 q=design(vUv); vec3 c=vec3(.004,.006,.014); /* ---------- stars ---------- */ vec2 sq=q*.5; vec2 sid=floor(sq); vec2 sfx=fract(sq)-.5; float hs=hash12(sid); c+=vec3(.62,.72,.95)*smoothstep(.32,.0,length(sfx))*step(.9968,hs)*(.5+.5*sin(uTime*1.4+hs*60.))*.8; /* ---------- the Sun, and its shell of tiles ---------- */ float sv=smoothstep(0.,.05,uSun); if(sv>.001){ vec2 sc=vec2(1250.,620.)+uM*vec2(9.,6.); float sd=length(q-sc); float sr=30.+300.*uSun; float ang=atan(q.y-sc.y,q.x-sc.x); /* light escaping through the gaps: long rays */ float rayA=fbm(vec2(ang*3.4,1.7)); float rayB=vnoise(vec2(ang*15.,uTime*.03)); float ray=smoothstep(.40,.95,rayA*.7+rayB*.5); c+=vec3(1.,.60,.26)*ray*exp(-max(sd-sr,0.)*.0042)*2.1*uSun; c+=vec3(1.,.5,.2)*(.30*exp(-sd*.006)+.85*exp(-sd*.022))*uSun; if(sd.002){ vec2 ec=mix(vec2(1150.,1520.),vec2(1255.,620.),uZoom)+uM*vec2(11.,7.)*(1.-uFar); float er=mix(1120.,330.,uZoom); float d=length(q-ec); c+=vec3(.10,.30,.85)*exp(-max(d-er,0.)*.010)*.55*ev; c+=vec3(.55,.80,1.)*exp(-abs(d-er)*.075)*.55*ev; if(d