The closest example of what you are trying to do is osgplanets - the earth it has two textures that are blending between to get day and night versions.
Robert.
On 10/12/06, Thomas Rydell <[EMAIL PROTECTED]> wrote:
Hi everyone,
Im trying to create a fallback case for when the user doesnt have shader
support on their gfx-card.
I have two tiled textures (A,B) representing Grass and Gravel, and an
alpha mask (C) representing the paths. I want to combine these textures
as following:
A(1-mask) + B*mask
i.e. The result should be a grass field with gravel paths.
I hope you get the idea.
I looked at all the examples using TexEnvCombine but I cant just get it
right.
Could anyone give me an example on how i use masks with TexEnvCombine or
suggest another method that i can try.
Best regards
Thomas
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
