Hi Dario,

I'm not sure I understand what you mean by a 'latch', could you describe the 
symptoms a little more? I can't remember if the light variable is a uniform or 
a #define and I'm not in front of a pc to check. 

Regards

Kim.

Sent from my iPhone

On 13 Jun 2013, at 17:04, "Dario Minieri" <[email protected]> wrote:

> Hi,
> 
> I'm implementing a simple sun walk into skydome, calculating the light color 
> during day. I'm using osgocean. To setup the ocean scene accordingly with the 
> light color variation, I have to set the light color in osgocean itself via 
> setLightColor. This works but setLightColor dirty the shader anytime and I 
> see a "latch" into the scene when this happens. 
> 
> You can suggest to me a workaround to avoid the latch? Obviously I don't sets 
> the ocean light color any microsecond, I update the light any 5 secs.
> 
> Thank you!
> 
> Cheers,
> Dario
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=54595#54595
> 
> 
> 
> 
> 
> _______________________________________________
> 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