Skip to content

Commit c126645

Browse files
committed
Removed multisampling; party version.
1 parent 9e7e003 commit c126645

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

graphics/gfx.frag

+14-14
Original file line numberDiff line numberDiff line change
@@ -444,20 +444,20 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord)
444444

445445
void main() {
446446
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;
461461
}
462462
else out_color = texture(iChannel0, gl_FragCoord.xy/iResolution.xy);
463463

0 commit comments

Comments
 (0)