Condense this ShaderToy shader to use as little characters as possible meaning no…
- User
Condense this ShaderToy shader to use as little characters as possible meaning no comments in the shader code:
void mainImage(out vec4 O, vec2 I) { float t = iTime, i, z, d, s; float h = .6 * t; for(O *= i; i++ < 1e2; O += (cos(s + s + h - vec4(0., 2., 4., 6.)) + 1.6) / d / z) { vec3 p = z * normalize(vec3(I + I, 0) - iResolution.xyy); p.z -= t; for(d = 1.; d < 17.; d += d) p += .7 * cos(p.yzx * d) / d; p.xy *= mat2(cos(z * .2 + vec4(0, 11, 33, 0))); z += d = .03 + .1 * max(s = 3. - abs(p.x), -s * .2); } O = tanh(O * O / 4e5); } Assistant
void mainImage(out vec4 O,vec2 I){float t=iTime,i,z,d,s,h=.6*t;for(O*=i;i++<1e2;O+=(cos(h+2.*(s-vec4(0,1,2,3)))+1.6)/d/z){vec3 p=z*normalize(vec3(I+I,0)-iResolution.xyy);p.z-=t;for(d=1;d<17;d+=d)p+=.7*cos(p.yzx*d)/d;p.xy*=mat2(cos(z*.2+vec4(0,11,33,0)));z+=d=.03+.1*max(s=3-abs(p.x),-s*.2);}O=tanh(O*O/4e5);}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.