File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -444,20 +444,20 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord)
444
444
445
445
void main() {
446
446
if (iPass == 0 ) {
447
- // mainImage(out_color, gl_FragCoord.xy);
448
- float ssaa = 9 .;
449
- out_color = vec4 (0 .);
450
- float bound = sqrt (ssaa)- 1 .;
451
- for (float i = -.5 * bound; i<=.5 * bound; i+= 1 .)
452
- for (float j=-.5 * bound; j<=.5 * bound; j+= 1 .)
453
- {
454
- vec4 c1;
455
- float r = pi/ 4 .;
456
- mat2 R = mat2 (cos (r),sin (r),- sin (r),cos (r));
457
- mainImage(c1, gl_FragCoord .xy+ R* (vec2 (i,j)* 1 ./max (bound, 1 .)));
458
- out_color += c1;
459
- }
460
- out_color /= ssaa;
447
+ mainImage(out_color, gl_FragCoord .xy);
448
+ // float ssaa = 9.;
449
+ // out_color = vec4(0.);
450
+ // float bound = sqrt(ssaa)-1.;
451
+ // for(float i = -.5*bound; i<=.5*bound; i+=1.)
452
+ // for(float j=-.5*bound; j<=.5*bound; j+=1.)
453
+ // {
454
+ // vec4 c1;
455
+ // float r = pi/4.;
456
+ // mat2 R = mat2(cos(r),sin(r),-sin(r),cos(r));
457
+ // mainImage(c1, gl_FragCoord.xy+R*(vec2(i,j)*1./max(bound, 1.)));
458
+ // out_color += c1;
459
+ // }
460
+ // out_color /= ssaa;
461
461
}
462
462
else out_color = texture(iChannel0, gl_FragCoord .xy/ iResolution.xy);
463
463
You can’t perform that action at this time.
0 commit comments