better compositor shader
[tar-legacy.git] / MCDV / shaders / ss_test.fs
index b8f3b1fb60e34eb0b584ed91cac54bb7c2282e08..de8a4807feaeb4e17baf143f5d3ccfdf62ce3472 100644 (file)
@@ -84,6 +84,12 @@ void main()
        vec4 sPlayspace = vec4(texture(tex_playspace, TexCoords));
        vec4 sObjectives = vec4(texture(tex_objectives, TexCoords));
 
+       vec4 final = sBackground;
+       final = blend_normal(final, ao_color, sPlayspace.b);
+       final = blend_normal(final, sample_gradient(sPlayspace.g), sPlayspace.r);
+       final = blend_normal(final, outline_color, sPlayspace.a - sPlayspace.r);
+       final = blend_add(final, sObjectives, sObjectives.a);
+
        // Return the final output color
-       FragColor = blend_add(blend_normal(blend_normal(blend_normal(sBackground, ao_color, sPlayspace.b), sample_gradient(sPlayspace.g), sPlayspace.r), outline_color, sPlayspace.a -sPlayspace.r), sObjectives, sObjectives.a * 0.75);
+       FragColor = final;
 }
\ No newline at end of file