[osg-users] Sharing uniforms among statesets?; was: Shader question concerning GL_LIGHTING

2008-04-09 Thread Yefei He
Hi, Mike, Robert, folks, Thanks for the help from this list, I've decided to use a uniform to solve the problem of switching lighting mode between fragments. My idea is to add the program and a LightingOn uniform to the stateset of the root node of the scenegraph, and set its value to 0

Re: [osg-users] Sharing uniforms among statesets?; was: Shader question concerning GL_LIGHTING

2008-04-09 Thread Guy
] [mailto:[EMAIL PROTECTED] On Behalf Of Yefei He Sent: Wednesday, April 09, 2008 5:46 PM To: OSG Users Subject: [osg-users] Sharing uniforms among statesets?; was: Shader question concerning GL_LIGHTING Hi, Mike, Robert, folks, Thanks for the help from this list, I've decided to use