Skip to content

Commit

Permalink
Fix classification color by doing premultiplied alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Mar 4, 2021
1 parent beaaaef commit 6b5d97b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ void main()
discard;
}
#endif
// Reverse premultiplication process to get the correct composited result of the classification primitives
color.rgb /= color.a;
gl_FragColor = color;
#endif
}

0 comments on commit 6b5d97b

Please sign in to comment.