[osg-users] osg::StateAttribute::PROTECTED usage for not effected from it's parental shaders.

2009-12-03 Thread Ümit Uzun
Hi All, ParentNode-ChildNode I have a shader and try implement to the ParentNode but I don't want to effect ChildNode with this shader. I want render ParentNode with Shader and render ChildNode with FixedFunction without any effect from it's parent's shader. I have tried to use

Re: [osg-users] osg::StateAttribute::PROTECTED usage for not effected from it's parental shaders.

2009-12-03 Thread Jean-Sébastien Guay
Hi Ümit, I have a shader and try implement to the ParentNode but I don't want to effect ChildNode with this shader. I want render ParentNode with Shader and render ChildNode with FixedFunction without any effect from it's parent's shader. I have tried to use osg::StateAttribute::PROTECTED but

Re: [osg-users] osg::StateAttribute::PROTECTED usage for not effected from it's parental shaders.

2009-12-03 Thread Ümit Uzun
Hi J.S; Thanks for reply, It works. I have known this rule but for some reason forgot so I have been trying to PROTECT child's stateSet :D Regards. Ümit Uzun 2009/12/3 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Ümit, I have a shader and try implement to the ParentNode but I