I have been playing around with Panda’s latest feature, the ‘automatic shader generator’, and I have a few questions.
I am trying to implement a really simple procedural texture shader and I would like to use it together with the ‘automatic shader’ features from panda (glow, bloom, …). Is there a way to mix the two?
I have never seen an ‘automatic shader generator’ before, but from what I could learn reading the ShaderGenerator.cxx code, it returns an object that contains all the Cg code necessary to run the effects. Could I insert my shader code there? Or is there a better way?
The manual only mentions that you have to extend the ShaderGenerator class, but there is no example.
p.s.: sorry for my poor english.