zacharycarter / zengine

2D | 3D Game development library
157 stars 13 forks source link

Fix texture transparency issue #36

Closed define-private-public closed 6 years ago

define-private-public commented 6 years ago

This was originally reported in #13, but it's better to have a separate ticket to track this since it's a little bit of a problem.


Sprite transparency seems to not be working. If you check the sheet for BlauGest it should be transparent in the background. Transparency is being turned into black pixels. Sample pic included of what's happening now; some of the text is getting obstructed by the whole sprite frame:

bad-blending

For testing this, I think it would be a good idea to to include an example that draws a PNG image w/ alpha values between [0, 255], (unline GIF with only has 1 bit alpha). Make the background also transition/interpolate between two colours.