[osg-users] Uniform above Program

2012-08-17 Thread PCJohn
Hi, it seems that it is not possible to put an uniform to the stateset of the scene root (for example, light position) and to put Program at the bottom (say, at a stateset of a drawable). It seems to me that the Program and all its Uniforms must be put the same StateSet. This way, it works

Re: [osg-users] Uniform above Program

2012-08-17 Thread Sergey Polischuk
Hi, John it seems that it is not possible to put an uniform to the stateset of the scene root (for example, light position) and to put Program at the bottom (say, at a stateset of a drawable). It's just not true, and works for me all the time. Can you post minimal example that dont work?

Re: [osg-users] Uniform above Program

2012-08-17 Thread PCJohn
Hi Sergey, this never worked for me for about a half of year. Update: now it works! It seems that maybe, I was unlucky on svn update and, kept the update for a while, seeing this issue. Based on your assurance, I made some tests and updated my shader routines. All shows that the issue is gone.