I have a material script that looks, partially, like this:
Code: Select all
fragment_program JWFP/SideBySideStereo unified
{
delegate JW/SideBySide_ps_metal
delegate JW/SideBySide_ps_hlsl
delegate JW/SideBySide_ps_vulkan
}
abstract material JW/StereoComposite
{
technique
{
pass
{
fragment_program_ref $composite_program
{
param_named pixelWidth int 100
param_named pixelHeight int 100
}
// other irrelevant stuff
}
}
}
material JW/StereoSideBySide : JW/StereoComposite
{
set $composite_program "JWFP/SideBySideStereo"
}
But when Ogre tries to compile the script, it logs "Compiler error: object name expected", pointing to the fragment_program_ref
line that uses the script variable. The Ogre manual has only one example of the use of a script variable, and that variable holds an array of numbers rather than an object name, so I don't know whether this ought to work.