Hello Michael,
If I am implementing custom vertex shaders should I be overriding the ShadowMap and not allowing that TexGen to be created and then generate the proper texture coordinates in my vertex shader? At this point I think all that is missing is the proper texture coordinates for shadows to be working for me.
Your intuition is correct, but you just need to calculate the shadow texture coordinates for the shadow texture unit. No need to disable the osg::TexGen because since it's fixed-function state, it will just be ignored when using a vertex shader.
As has been said before, once you start using shaders for a given stage you need to do everything the fixed pipeline would have done for you in your shader for that stage yourself (at least, what you need). That includes fog, texgen, etc.
J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

