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/

Reply via email to