Hi folks,
we have some material (Cg shader) assigned to a bunch of objects or different parts of an object, respectively. However, some of the shader's uniform parameters need to be changed for the different objects, that is to say, the model matrix (not the modelview!) for the geometry. Duplicating the whole material for every node is not an option due to its memory consumption (textures...).
Is there a way to have every node below the material change its parameters independently? Something like registering enter/leave functions? How can this be accomplished then? Or can the material be split into a shared "texture-part" and individual "shaderprogram-parts"...?
Thanks for any help, Matthias ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
