Quite new to Panda3D, but having a blast… I ran into some unexpected behaviour, that neither the manual or forum posts seem to cover. I’m doing something wrong, yet I am very sure I’m following the right steps. Please prove me wrong, 'cause I can’t get it to work.
Problem is with setShaderAuto() and setShaderOff(), especially on nodes in the scene graph. Setting on render works as expected, but anything below that (even with a priority given) seems to do nothing. A node.reverseLs() shows the scene graph is working as I’d like, and the attributes are set:
PandaNode render S:(AntialiasAttrib CullFaceAttrib LightAttrib RescaleNormalAttrib)
PandaNode Bots S:(ShaderAttrib)
In this case I did a setShaderAuto() on node Bots, but no shadows are shown. If I do setShaderAuto() on the render root, everything gets shaded, even nodes that I used setShaderOff() on. It seems to be all or nothing on de render root, but no way to change the behaviour down the tree.
I feel like I am missing something really basic, but after shuffleing my code around for a few hours, I can’t figure out what it might be.