1. 版本介绍:
(1)QT版本:QT5.12 +QT Creator 4.8
(2)编译器版本:windows msvc2017 32bit / 64bit
2. 问题描述:
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(lightPos): shader program is not linked
QOpenGLShaderProgram::uniformLocation(lightAmbient): shader program is not linked
QOpenGLShaderProgram::uniformLocation(lightDiffuse): shader program is not linked
QOpenGLShaderProgram::uniformLocation(matAmbient): shader program is not linked
QOpenGLShaderProgram::uniformLocation(matDiffuse): shader program is not linked
QOpenGLShader::link : Link called without any attached shader objects.
3.问题解决
(1)检查顶点着色器和片段着色器文件路径是否有错。
(2)检查shader文件中是否有中文注释。【有的人的shader文件有