Hi Robert, Bit of a crazy week @ work, so it took a while to revisit this issue. I must have taken a wrong turn somewhere earlier, because when I modified osgdepthshadow.cpp, the behavior is in line with what you were expecting: the more specific Uniform overrides the inherited value from the parents. When the program is attached to the scene, there's a new Uniform:
And in _create_scene(), I set the complimentary value:
The end result is that geode_1 is rendered without texturing, just as I wanted :) What I'd like to have clear in my head now is how is the above different from SS->setMode(OVERRIDE) or (PROTECTED). Here's the code: |
osgdepthshadow.cpp
Description: Binary data
-------------------------- Radu Mihai On 8-Dec-06, at 4:06 AM, Robert Osfield wrote:
-------------------------- Radu Mihai |
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
