Hi, Sorry for noob question, but I'm going crazy setting attribute vertex shaders variables starting from ShadowedScene. I've some code like this:
//create shadowed scene... //create shadow technique l_MinimalShadowMap l_MinimalShadowMap->setShadowFragmentShader(l_sf); l_MinimalShadowMap->setShadowVertexShader(l_sv); l_MinimalShadowMap->setMainFragmentShader(l_mf); l_MinimalShadowMap->setMainVertexShader(l_mv); //set technique to the shadowed scene... Now, l_sf, l_sv, l_mf and l_mv are fragment and vertex shaders and they contains a lot of others features and integrations then shadows. In particular, a vertex shaders contains some attribute variables which I have to set from my program. This is the problem: to set attribute vartex vars I need to access the program shaders, but this program is setted inside a stateset's technique using CullVisitor. So, I'm not able to retrieve this program to set others attributes vertex shaders variables. Someone can explain a method? Thank you! Cheers, Dario[/code] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53431#53431 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org