Can someone explain how Cg fits in with iOS/GLES2, and what changes that CMake flag actually does?
edit: I now finished rebuilding with OGRE_CONFIG_ENABLE_GLES2_CG_SUPPORT and now SampleBrowser doesn't display anything, I get lots of errors like
23:57:51: File: failed to convert from Cg to glsl with the following errors:
ERROR: 0:60: 'float2x4' : syntax error syntax error
ERROR: 1 compilation errors. No code generated.
23:57:50: OGRE EXCEPTION(2:InvalidParametersException): Parameter called worldDualQuaternion2x4Array does not exist. in GpuProgramParameters::_findNamedConstantDefinition at /usr/local/ogre/ogre1.8/src/OgreMain/src/OgreGpuProgramParams.cpp (line 1449)
23:57:50: Compiler error: invalid parameters in DualQuaternion.program(118): setting of constant failed
23:57:50: OGRE EXCEPTION(2:InvalidParametersException): Parameter called viewProjectionMatrix does not exist. in GpuProgramParameters::_findNamedConstantDefinition at /usr/local/ogre/ogre1.8/src/OgreMain/src/OgreGpuProgramParams.cpp (line 1449)
23:57:50: Compiler error: invalid parameters in DualQuaternion.program(119): setting of constant failed
What is wrong and is this expected? Especially the last one, which talks about hlsl2glsl?23:57:50: File:DeferredShading/post/LightMaterial_vs.cg has unsupported syntax for hlsl2glsl.
I only ran on the simulator.
