På Mon, 08 Jan 2007 16:47:35 +0100, skrev Robert Osfield
<[EMAIL PROTECTED]>:
Hi Joakim,
Unfortunately you can't turn GLSL shaders off using a mode change as
OpenGL itself doesn't support this for GLSL. This is a real shame
w.r.t consistency with the rest of the OSG/OpenGL. The way to switch
off shaders is to assign an empty osg::Program to the stateset that
you don't want GLSL to be active on.
Ok, this explains a lot for me :) Thanks.
Robert.
On 1/8/07, Joakim Simonsson <[EMAIL PROTECTED]> wrote:
Hi,
* I have one group that contains two geodes, A and B.
* The group has a StateSet with a shader.
* My goal is to modify the StateSet of geode B, so the shader doesn't
apply for that node.
B's state set:
StateSet {
UniqueID StateSet_2
DataVariance STATIC
rendering_hint DEFAULT_BIN
renderBinMode INHERIT
0x24 OFF This should turn shaders off
}
But it seems that it still inherits the stateset from the parent node
(the
group node), i.e. the shader is not turned off for the B node.
Any clues?
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/