Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#41 Proper alpha compositing

open
nobody
None
5
2009-05-27
2009-05-27
Anton Malov
No

This patch fixes alpha compositing in ilBlit(...). There are two major changes:
1) Alpha compositing is now performed according to this document http://www.cs.princeton.edu/courses/archive/fall00/cs426/papers/smith95a.pdf so background and foreground alpha values takes part in computation.
2) Color rounding problem fixed by adding 0.5 to intermediate float value before truncation.

Howewer, alpha blending still works only for 4 bit per channel rgba due to (ILubyte) truncation.

Discussion

  • Anton Malov
    Anton Malov
    2009-05-27

    ilBlit alpha compositong patch

     
    Attachments