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)
{
#if !defined(OSG_

double declaration in gles osg_ModelViewProjectionMatrix&spm=1001.2101.3001.5002&articleId=122692651&d=1&t=3&u=16150bde4f794f6080a0b33ddf9b610c)
564

被折叠的 条评论
为什么被折叠?



