I would like to set GL wrap to transparent (ColorA(0.0f,0.0f,0.0f,0.0f)) as per this page, but somehow I always get black. The only way I can get transparent is if pass theTexture through a vFBO and a shader.
So, with examples
If I do this:
fmt.setBorderColor(ColorA(0.0f, 0.0f, 0.0f, 0.0f));
theTexture = gl::Texture2d::create(loadImage(pathToTheFile), fmt);
I get black edges instead of transparent.
But if I instead create a scoped shader (I am omitting unnecessary lines for the purpose of clarity):
theTexture = vFbo->getColorTexture();
Then I do get transparent edges.
My question is is there a way to achieve transparent edges without using a shader?
I hope I explained it sufficiently.
Thanks for all the suggestions!