Hi, 

I work on project need shadow between avatar and model, and I add shadowmap as 
the example code but it doesn't work. I read the shadow example and seems that 
the glsl shader only has two texture unit, one for shadowbase and one for 
shadowTexture. Do I need to assign my own texture unit for the shadow receiver? 
Another question, do I need to create a vertext shader to calculate the matrix 
transformation between two camera(one light, one main cam)? 

Thanks a lot. 

Hui


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

Reply via email to