Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The Porter and Duff compositing paper is good, too.

One clarification, though: With premultiplied colors, something like (1,1,1,0) is either illegal or a light source. It's not a valid normal color.



Entirely false in that it is indeed a completely valid combination. See luminescent pixels in the Porter Duff paper. It represents a pixel that has no occlusion and is emitting.


But then you can do additive blending without changing blend modes - or even some additive and some standard transparency modes in the same sprite!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: