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
contain transparency (like a road overlay).

>From my understanding of texenvcombine, I can either use a constant color or
SRC_ALPHA as an operand, but not a combination of both.  I really want a way
to use SRC_ALPHA scaled by some user defined opacity value (0 to 1).

Does anyone know of a way to accomplish this?  I know how to accomplish this
using a glsl shader, but can't quite figure out how to do it with
texenvcombine.

Thanks!

Jason
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to