>From the "Common Questions" of the osgShadow node kit. 

 

"What if my objects already have a shader applied to them? 

*       That shader also needs to implement shadow mapping. See the
<http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src
/osgShadow/ShadowMap.cpp>  top of src/osgShadow/ShadowMap.cpp for the basic
shader, and use that in your shader (keep the same names for the variables
too). "

 

Which shader is the basic shader, fragmentShaderSource_noBaseTexture or
fragmentShaderSource_withBaseTexture?  I assume it isn't one for HUD.

Thanks,
W

 

 

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

Reply via email to