mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-21 20:39:08 -06:00
Premultiply fieldline colors and use fully opaque transparency instead
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user