Hi Tobias,

The texture matrix is a fixed function state that may not have an effect when a 
shader is used. To get the desired effect, the shader code needs to get the 
texture matrix via gl_TextureMatrix built in variable and then multiply the 
texture coordinates with it. I presume the osgFX::BumpMapping shader is not 
doing this.

The osgFX::BumpMapping shader appears to be written in ARB assembly rather than 
GLSL, so it's a bit difficult to modify it. You might be better off writing 
your own shader in GLSL.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65592#65592





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

Reply via email to