I have a number of custom passes in my engine, and its really useful to be able to supply custom parameters to those passes via the compositor scripts. I currently do it by using the 'identifier' property and a set bit mask, but that is, well, rubbish!
So I propose one of the following, please let me know what you think;
- Store the AbstractNode used to parse the custom pass inside Ogre::CompositorPassDef, which can be parsed further in Ogre::CompositorPassProvider
- For any value that is not recognized when initially parsing, store it in a map<string, string>. EG
Code: Select all
...
pass custom MyPass
{
customProperty 1 0 0 1
}
Any thoughts, any better ideas!?