Adding two new events to ScriptTranslator, to throw event when processing a material technique or a material pass.
Those two events parameters are respectively hold in CreateTechniqueScriptCompilerEvent and CreatePassScriptCompilerEvent class (exactly the same method than existing CreateMaterialScriptCompilerEvent).
Patch for ScriptCompiler files
Forum thread: http://www.ogre3d.org/forums/viewtopic.php?f=4&t=69003