osg state convertVertexShaderSourceToOsgBuiltIns inserts these and the double declaration is causing an error in gles
osgEarth/ShaderUtils.cpp
void applySupportForNoFFPImpl(GLSLChunker::Chunks& chunks)
{
#if !defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) && !defined(OSG_GLES3_AVAILABLE) //osg state convertVertexShaderSourceToOsgBuiltIns inserts these and the double declaration is causing an error in gles
}
对于gles的着色器程序,osgEarth的着色器框架会在每一个着色器文件版本号的下面增加几行:
uniform mat4 osg_ModelViewMatrix;
uniform mat4 osg_ProjectionMatrix;
uniform mat4 osg_ModelViewProjectionMatrix;
uniform mat3 osg_NormalMatrix;
osgEarth/ShaderUtils.cpp
void applySupportForNoFFPImpl(GLSLChunker::Chunks& chunks)
{