Premultiply fieldline colors and use fully opaque transparency instead

This commit is contained in:
Alexander Bock
2016-06-02 17:38:33 +02:00
parent 4c679c15ea
commit 7908d8a8b0

View File

@@ -40,9 +40,9 @@ Fragment getFragment()
float alpha = 1-length(gs_normal)*length(gs_normal);
vec4 fragColor;
if (classification)
fragColor = vec4(gs_color.rgb, alpha);
fragColor = vec4(gs_color.rgb * alpha, 1.0);
else
fragColor = vec4(fieldLineColor.rgb, fieldLineColor.a * alpha);
fragColor = vec4(fieldLineColor.rgb * fieldLineColor.a * alpha, 1.0);
float depth = pscDepth(gs_position);