更新时间:2023-11-08 11:30:46
OK,然后这是我的一个解决方案的猜测:
ok then here is my guess at a solution:
在glVertexAttribPointer()调用,似乎要被罚款
the glVertexAttribPointer() calls seems to be fine
我的猜测
vsTextureCoord == -1
vsTextureCoord == -1
glGetAttribLocation()不会产生错误
如果未找到的属性。你必须检查如果结果是
不为-1,以确保一切正常。
glGetAttribLocation() does not generate an error if the attribute was not found. you have to check if the result is not -1 to make sure everything went fine.
源的问题可能是在属性TexCoordIn您
着色器是一个vec4!
source for the problem could be that the attribute TexCoordIn in your shader is a vec4!