Hi Nan,

You only need to call "addUniform" once. After that, just calling
"lightPosU.set()" should be enough to update the value of the uniform.

Cheers,
Farshid

On Wed, May 11, 2011 at 12:48 PM, Nan WANG <[email protected]> wrote:

> Can I do like this?
> lightPosU.set (osg::Vec3(0,0,10));
>
> then
> bumpMapState->addUniform(lightPosU);
> this is a right way to do that?
>
> ...
>
> Thank you!
>
> Cheers,
> Nan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=39283#39283
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to