(And yes it's really been 10 years 👴).
therealmjp.github.io/posts/ten-ye...
(And yes it's really been 10 years 👴).
therealmjp.github.io/posts/ten-ye...
This time instead of having a fixed depth-slice count (which is common for games for a variety of reasons) we'll instead focus on trying to maintain a uniform and non-elongated froxel shapes, which results a variable slice count
www.desmos.com/geometry/yl5...
This time instead of having a fixed depth-slice count (which is common for games for a variety of reasons) we'll instead focus on trying to maintain a uniform and non-elongated froxel shapes, which results a variable slice count
www.desmos.com/geometry/yl5...
for(float i,z,d;i++<1e2;o+=vec4(3,8,z,0)/d/9e4){vec3 p=z*normalize(FC.rgb*2.-r.xyy),a=normalize(cos(vec3(4,2,0)+t-d/.1));p.z+=8.,a=a*dot(a,p)-cross(a,p);for(d=1.;d++<5.;)a+=sin(a*d+t).yzx/d;z+=d=abs(length(a)-5.)/6.;}
for(float i,z,d;i++<1e2;o+=vec4(3,8,z,0)/d/9e4){vec3 p=z*normalize(FC.rgb*2.-r.xyy),a=normalize(cos(vec3(4,2,0)+t-d/.1));p.z+=8.,a=a*dot(a,p)-cross(a,p);for(d=1.;d++<5.;)a+=sin(a*d+t).yzx/d;z+=d=abs(length(a)-5.)/6.;}
“Uniform Sampling of Surfaces by Casting Rays” w/ @abhishekmadan.bsky.social @nmwsharp.bsky.social and Alec Jacobson
“Uniform Sampling of Surfaces by Casting Rays” w/ @abhishekmadan.bsky.social @nmwsharp.bsky.social and Alec Jacobson
for(float i,z,d;i++<1e2;o+=vec4(z/7.,2,3,1)/d){vec3 p=z*normalize(FC.rgb*2.-r.xyy);p.z-=5.*t;p.xy*=mat2(cos(z*.1+t*.1+vec4(0,33,11,0)));for(d=1.;d<9.;d/=.7)p+=cos(p.yzx*d+t)/d;z+=d=.02+abs(2.-dot(cos(p),sin(p.yzx*.6)))/8.;}o=tanh(o*o/1e7);
for(float i,z,d;i++<1e2;o+=vec4(z/7.,2,3,1)/d){vec3 p=z*normalize(FC.rgb*2.-r.xyy);p.z-=5.*t;p.xy*=mat2(cos(z*.1+t*.1+vec4(0,33,11,0)));for(d=1.;d<9.;d/=.7)p+=cos(p.yzx*d+t)/d;z+=d=.02+abs(2.-dot(cos(p),sin(p.yzx*.6)))/8.;}o=tanh(o*o/1e7);
Actually, I’m not defending anything, I am attacking the practice of dumping buckets of jaded misery on moments of goofy joy and I will absolutely die on that hill.
Actually, I’m not defending anything, I am attacking the practice of dumping buckets of jaded misery on moments of goofy joy and I will absolutely die on that hill.
4𝑥⁶ + (−10𝑡₁³ + 10𝑡₁² − 10𝑡₁ + 10𝑖)𝑥² + (10𝑡₂³ − 10𝑡₂² − 10𝑡₂ + 10𝑖)𝑥
𝑡₁, 𝑡₂ ∈ ℂ, |𝑡₁| = |𝑡₂| = 1
4𝑥⁶ + (−10𝑡₁³ + 10𝑡₁² − 10𝑡₁ + 10𝑖)𝑥² + (10𝑡₂³ − 10𝑡₂² − 10𝑡₂ + 10𝑖)𝑥
𝑡₁, 𝑡₂ ∈ ℂ, |𝑡₁| = |𝑡₂| = 1
vec2 p=(FC.xy-r*.5)/r.y*mat2(9,-2,2,9),v;for(float i;i++<50.;o+=(cos(sin(i)*vec4(7,4,2,1))+1.)*exp(sin(i*i+t))/length(max(v,vec2(v.x*(3.+snoise2D(p+vec2(t/.3,i)))/1e2,v.y*.21))))v=p+cos(i*i+t+p.x*.2+vec2(0,11))*3.;o=tanh(pow(o/3e2,vec4(1.5)));
vec2 p=(FC.xy-r*.5)/r.y*mat2(9,-2,2,9),v;for(float i;i++<50.;o+=(cos(sin(i)*vec4(7,4,2,1))+1.)*exp(sin(i*i+t))/length(max(v,vec2(v.x*(3.+snoise2D(p+vec2(t/.3,i)))/1e2,v.y*.21))))v=p+cos(i*i+t+p.x*.2+vec2(0,11))*3.;o=tanh(pow(o/3e2,vec4(1.5)));