[Qt-interest] GLSL and two semi-transparent textures

Sean Harmer sean.harmer at maps-technology.com
Wed Aug 11 08:16:44 CEST 2010


Hi,

On Wednesday 11 August 2010 02:31:11 Josiah Bryan wrote:
> Josiah Bryan wrote:
> > Just one problem - When I draw two textures, one over top of the other
> > (think a PiP), and the top (pip) has an alpha channel (say, the Qt cube
> > logo from the pbuffers examples), the qglClearColor shows thru in the
> > transparent areas of the top texture, NOT the bottom texture!

I've not had time to look at your code in detail but from your description it 
sounds like the fragment shader is hard-wired to blend in the clear color as 
opposed to the existing framebuffer color when your incoming fragment has an 
alpha channel.

Can you post a small compilable example that reproduces the problem please? 
Perhaps one that uses static images as the textures?

Cheers,

Sean



More information about the Qt-interest-old mailing list