[Ogre] Shader compiler errors with Intel chipset
Summary
With my on-board Intel chipset, I got the following errors:
[1][00:00:00.589172][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: RenderingAPIException: 'SAT_AmbientOcclusion_FP.glsl' 0:90(2): error: `return' with wrong type int, in function `coneShadowQuery' returning float in compile at /home/sight/.conan/data/ogre/1.11.4/sight/stable/build/8bacb8d8500085c8fb36382382a2916dd1698f84/source_subfolder/RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp (line 242)
[2][00:00:00.589308][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: High-level program 'VolIllum_FP' is not supported: 'SAT_AmbientOcclusion_FP.glsl' 0:90(2): error: `return' with wrong type int, in function `coneShadowQuery' returning float
[3][00:00:00.589342][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: InvalidParametersException: Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/sight/.conan/data/ogre/1.11.4/sight/stable/build/8bacb8d8500085c8fb36382382a2916dd1698f84/source_subfolder/OgreMain/src/OgreGpuProgramParams.cpp (line 1661)
[4][00:00:00.589399][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: Error: ScriptCompiler - invalid parameters in VolIllum.material(9): Named constants have not been initialised, perhaps a compile error.
[5][00:00:00.589433][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: InvalidParametersException: Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/sight/.conan/data/ogre/1.11.4/sight/stable/build/8bacb8d8500085c8fb36382382a2916dd1698f84/source_subfolder/OgreMain/src/OgreGpuProgramParams.cpp (line 1661)
[6][00:00:00.589467][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: Error: ScriptCompiler - invalid parameters in VolIllum.material(10): Named constants have not been initialised, perhaps a compile error.
[7][00:00:00.589489][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: InvalidParametersException: Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/sight/.conan/data/ogre/1.11.4/sight/stable/build/8bacb8d8500085c8fb36382382a2916dd1698f84/source_subfolder/OgreMain/src/OgreGpuProgramParams.cpp (line 1661)
[8][00:00:00.589523][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: Error: ScriptCompiler - invalid parameters in VolIllum.material(11): Named constants have not been initialised, perhaps a compile error.
[9][00:00:00.589557][error] /home/fbridault/dev/apps/XXXX/sight/Bundles/visu/visuOgre/src/visuOgre/Plugin.cpp:82: InvalidParametersException: Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/sight/.conan/data/ogre/1.11.4/sight/stable/build/8bacb8d8500085c8fb36382382a2916dd1698f84/source_subfolder/OgreMain/src/OgreGpuProgramParams.cpp (line 1661)
Steps to reproduce
Launch any Ogre application
Dev environment
- OS: Linux
What is the expected correct behavior?
There should be no error.
Possible fixes
Correct the compiling errors.