Set alpha to 1.0 in all the post shaders. Not that it should be required, but definitely recommended.

This commit is contained in:
Henrik Rydgard committed 2013-12-04 15:38:38 +01:00
1 parent 1a3e7a17fb
commit 7eaec209d3
4 files changed
+8 -5

No files matched your search

+2 -1
View File
@@ -69,7 +69,8 @@ void main()
w4 = (i4.r+i4.g+i4.b+lc)*0.2;
w4 = clamp(k*dot(abs(c-i4),dt)/w4+mx,min_w,max_w);
gl_FragColor.xyz = w1*i1 + w2*i2 + w3*i3 + w4*i4 + (1.0-w1-w2-w3-w4)*c;
gl_FragColor.rgb = w1*i1 + w2*i2 + w3*i3 + w4*i4 + (1.0-w1-w2-w3-w4)*c;
gl_FragColor.a = 1.0;
}
+2 -1
View File
@@ -64,5 +64,6 @@ void main()
color.g = pow(color.g+0.001,a);
color.b = pow(color.b+0.001,a);
gl_FragColor.xyz = contrast4(x)*normalize(color*c_ch)*b;
gl_FragColor.rgb = contrast4(x)*normalize(color*c_ch)*b;
gl_FragColor.a = 1.0;
}
+2 -1
View File
@@ -47,5 +47,6 @@ void main()
c11 = 4.0*normalize(c11);
vec3 frct = fract(c11); frct*=frct;
c11 = floor(c11)+ 0.05*dt + frct*frct;
gl_FragColor.xyz = 0.25*lc*(1.1-d*sqrt(d))*c11;
gl_FragColor.rgb = 0.25*lc*(1.1-d*sqrt(d))*c11;
gl_FragColor.a = 1.0;
}
+2 -2
View File
@@ -53,6 +53,6 @@ c1=RGBtoYIQ*c0;
c1=vec3(pow(c1.x,val00.x),c1.yz*val00.yz);
gl_FragColor.xyz=YIQtoRGB*c1;
gl_FragColor.rgb=YIQtoRGB*c1;
gl_FragColor.a = 1.0;
}