PistonDevelopers/opengl_graphics

Weird texture sampling issue

0e4ef622 opened this issue · 2 comments

There's a line and I have no idea why it's there. I think it might have something to do with alpha blending since the line is at the boundary between the opaque part and the transparent part of the image.

What it looks like

The image I'm trying to draw

The code I'm running

Ok I figured it out, it's because the transparent part of the image is actually 100% transparent white, so some of the white bleeds in due to interpolation.