Add trail to bloom

This commit is contained in:
jgk
2021-07-05 21:31:35 +02:00
parent 77d93fabeb
commit be7bf986e2
6 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ void main()
float alph = 0.0;
for (int i = 0; i < 9; i++)
alph += sampleTex[i].a;
alph = sampleTex[5].a + alph/9.0;
alph = max(sampleTex[4].a, alph/9.0);
//
//fColor = col;
fColor = vec4(col.rgb/col.a,alph);