Hi all,

 

I have a subgraph that can be described with the diagram below.
Basically I attach a shader to the group parent node so that it is
applied to child1 and child3. However I don't want to use this general
shader for the Child2 so I attach a different one to it.

 

I assumed that if I attached a shader to a child it would override the
shader of the parent. However it seems that Child2's shader is not being
called.

 

Is this standard behaviour or should I be looking for errors in my code?

 

RenderGroup (Attach Shader_1)

|

|______MatrixTansform 

          |

          |___ Child_1 

          |

          |___ Child_2 (Attach Shader_2)

          |

          |___ Child_3

 

Regards

 

Kim.

 

*****************************************************************************************
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to