kalle_h wrote:If you use transparent border trick you need to also draw that transparent area with image.
Example. I have 32x32 texture. If want image that is 28x28 size I put it to center of that texture. Then I draw 32x32 full texture region. In texture coord terms I draw from 0 to 1 in both x and y axels.
If minification is used then border might have to be little bigger. To avoid gray borders syndrome, transparent border should not be color(0,0,0,0) but color of the edge with alpha channel of 0. So white edge picture would use 255,255,255,0 as border color.
Thanks kalle_h for your reply!
I've used a texture with even 10px transparent border, and I'm almost sure I've drawn the whole texture (transparent border included) through the TextureRegion I've used (basically with height and width of the texture with transparent border included), but still I got the aliasing problem.
An even more strange example?
I tried to render a texture with a color-filled rectangle (like the one in pictures above) within another rectangle (a simple border rectangle), with transparent offset between the two, and I get the edges of BOTH rectangles with aliasing problem.
At this point there must be something I didn't get ^^
For the moment, I solved with a Gaussian Blur ranged from 0.5 to 2 pixels, but this way I wont have the fine sharp graphics I wanted
