Re: [osg-users] Reload shader sampler2D for each drawable

2009-08-03 Thread Maxime BOUCHER
Oooh... right! Thank you! Cheers, Maxime -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15724#15724 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/list

Re: [osg-users] Reload shader sampler2D for each drawable

2009-07-31 Thread Thrall, Bryan
Maxime BOUCHER wrote on Friday, July 31, 2009 7:58 AM: > bthrall wrote: >> >> The shader has a sampler2D uniform that needs to be set to the texture >> unit you want to use; as long as you attach a different Texture2D to >> each geode/drawable on that texture unit, the shader will see that >> geod

Re: [osg-users] Reload shader sampler2D for each drawable

2009-07-31 Thread Maxime BOUCHER
Hi, Thanks for the reply. bthrall wrote: > > The shader has a sampler2D uniform that needs to be set to the texture > unit you want to use; as long as you attach a different Texture2D to > each geode/drawable on that texture unit, the shader will see that > geode/drawable's texture. Well, t

Re: [osg-users] Reload shader sampler2D for each drawable

2009-07-30 Thread Thrall, Bryan
Maxime BOUCHER wrote on Thursday, July 30, 2009 8:24 AM: > Hi, > > I'm looking for reloading the texture I send to a shader I put on the top of > the scene graph. As every geode/drawable (it depends on the model) as a > different texture, I'd like to reload the good one for each. > > I tried

[osg-users] Reload shader sampler2D for each drawable

2009-07-30 Thread Maxime BOUCHER
Hi, I'm looking for reloading the texture I send to a shader I put on the top of the scene graph. As every geode/drawable (it depends on the model) as a different texture, I'd like to reload the good one for each. I tried to do so using the geodes' & drawables' update callbacks in the callb