Opens profile photo
Follow
Ken Russell 🇺🇦
@gfxprogrammer
Computer programmer by trade. Graphics focused by passion. Working on WebGL and the Chrome browser. I stand with Ukraine, Wuhan and #BlackLivesMatter
Silicon Valleygfxprose.blogspot.comJoined March 2012

Ken Russell 🇺🇦’s Tweets

vec3 a=vec3(1,0,0),q,p=-.5-a*t,v=rotate3D(.7,a)*vec3(FC.xy*2.-r,r.y);for(float d,i,l;l++<2e2;p-=v/length(v)*d)for(q=p,d=-q.y,i=58.;i>.05;i*=.5)d=max(d,min(min(q=i*.9-abs(mod(q*rotate3D(.5,a.zxz),i+i)-i),q.y).x,q.z)),l>1e2?d+=1e-5,v/=v,o:o+=max(5e-4-d*d,0.);o*=log(7.-p.y)*.1;#GLSL
3
278
Show this thread
a hearty #FollowFriday for who recently published an update to his GPU Path Tracer that adds support for Looking Glass devices (!!) try this out for yourself here ꜜ gkjohnson.github.io/three-gpu-path
Quote Tweet
three-gpu-pathtracer v0.0.13 is now out! This version includes iridescence & sheen quality fixes as well as improved perf w/ early path termination & quilt rendering for multi-view displays! Notes: github.com/gkjohnson/thre #threejs #webgl #raytracing #graphics #holograms 1/2
Show this thread
Image
1
11
Show this thread
Join our next WebGL + WebGPU Meetup on Tuesday January 31, 2023 We have an exciting lineup of Working Group updates, Three.js, and Google Earth. The meetup will conclude with a lively Q&A session, so bring your questions for the experts! Register:
1
16
for(float h,i,e,g,s;i++<1e2;g+=e/6.){mat2 m=rotate2D(.7);s=3.;vec3 n,p=vec3((FC.xy-.5*r)/r.y*g,g-s);p.zy*=m;p.z+=t;for(e=p.y;s<5e2;s+=s)p.xz*=m,n.xz*=m,n+=cos(p*s)/s,e+=dot(sin(p.xz*s),r/r/s*.4);h=.9-length(n.xz);e-=snoise2D(p.xz*40.)*h/35.;o.rgb+=hsv(h/4.,h,.5-n.z)/exp(e*s+5.);}
2
232
Show this thread
for(float y,i,g,e,v,R,a,h=.5;i++<1e2;o+=.01/exp(e*1e4)){vec3 p=g-vec3(FC.xy/r/h*g,h)+i/1e5;y=p.y+p.z*.7;e=atan(p.x,p.z);p=vec3(log2(v=R=length(p))+e/PI-t,a=y/3./R,a*sin(e*5.))+h;for(int j;j++<8;p/=a)R*=a=dot(p-=round(p),p)*1.5+.09;g+=e=min(abs(v*.3-y+sin(a/v)/1e2),max(-y,R))*.2;}
Embedded video
GIF
3
301
Show this thread