Re: [osg-users] Layer Opacity using TexEnvCombine

2009-06-09 Thread Jason Beverage
Hi Jason, You're exactly right, if texture 1 has transparency, then I want texture 0 to show through no matter what. Doing something like the following on unit 0 works great in that case, but I also want to add in another scaling factor that will scale the alpha value of the texture from 0 to 1

Re: [osg-users] Layer Opacity using TexEnvCombine

2009-06-09 Thread Jason Daly
Jason Beverage wrote: Hi Jason, You're exactly right, if texture 1 has transparency, then I want texture 0 to show through no matter what. Doing something like the following on unit 0 works great in that case, but I also want to add in another scaling factor that will scale the alpha value

[osg-users] Layer Opacity using TexEnvCombine

2009-06-08 Thread Jason Beverage
Hi all, I'm trying to figure out a way to modify layer opacity using TexEnvCombine that takes into account the underlying alpha channel of a texture. The osgFX::MultiTextureControl does very close to what I'm looking to do, but doesn't take into account the fact that the underlying texture may

Re: [osg-users] Layer Opacity using TexEnvCombine

2009-06-08 Thread Jason Daly
Jason Beverage wrote: Hi all, I'm trying to figure out a way to modify layer opacity using TexEnvCombine that takes into account the underlying alpha channel of a texture. Do you mean if unit 1's texture has transparency, you want that to show through to unit 0's texture? The