This is excellent. This helps out a lot. I’m still trying to figure out the code, you’re using different python instructions that I haven’t seen before- so it’s good on a lot of different levels.
i think the most curious in the code is the binary operations i use to select which shaders to activate. otherwise i think the sourcecode is not that nice and could be simplified a lot.
I thought i’d release it because:
1st: you can see all mixings of shaders at the same time
2nd: it shows how to use the shader generator on a “plain” object.
3th: you can simply replace the model (which has tangents and binormals) and the textures and view the different outcomes.
4th: it looks cool
this only shows the usage of the panda3d internal shaders, i am quite bad if it comes to shader programming. (so no it’s not inpressive, it’s only useful )