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
]
[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
2 matches
Mail list logo