4 ms·
Using premultiplied alpha avoids this. Jim Blinn's books from the 90s give a very thoughtful treatment of the topic.
by jamesbowman 9y ago
Using premultiplied alpha avoids this. Jim Blinn's books from the 90s give a very thoughtful treatment of the topic.
- tastybberries 9y agoThe article already does recommend using premultiplied alpha. Thank you for the background source though!
- AnimalMuppet 9y agoThe 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.
- tgb 9y agoBut then you can do additive blending without changing blend modes - or even some additive and some standard transparency modes in the same sprite!
- foolrush 9y agoEntirely 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.