Code: Select all
fragment_program lighting_frag glsl
{
source lighting.frag
}
fragment_program my_shader_frag glsl
{
source my_shader.frag
attach lighting_frag
}
I confirmed this was an Ogre issue by running the New Instancing sample in SampleBrowser. I see errors reported on the console for mistakes I make in Samples/Media/materials/programs/GLSL/Instancing.frag but not for Samples/Media/materials/programs/GLSL/shadows.glsl, which is attached with the "attach" keyword.
Is there any way to see errors for all shader files?