[osg-users] How to set attribute shaders vars into ShadowedScene.

2013-04-03 Thread Dario Minieri
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);

Re: [osg-users] How to set attribute shaders vars into ShadowedScene.

2013-04-03 Thread Daniel Schmid
Hi Dario For this case you have to derive your own shadow class from MinimalShadowMap, in order to get access to the protected statesets and programs. That's the way I did it. Regards -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53446#53446