-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi,
Your video tutorial is great!When I run the code,I got this error,how to fix it ?
Traceback (most recent call last):
File "ep11_view_matrix.py", line 113, in <module>
shader = compileProgram(compileShader(vertex_src, GL_VERTEX_SHADER), compileShader(fragment_src, GL_FRAGMENT_SHADER))
File "/usr/local/lib/python3.5/dist-packages/OpenGL/GL/shaders.py", line 241, in compileShader
shaderType,
OpenGL.GL.shaders.ShaderCompilationError: ("Shader compile failure (0): b'0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES\\n'", [b'\n# version 330\n\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec2 a_texture;\n\nuniform mat4 model;\nuniform mat4 projection;\nuniform mat4 view;\n\nout vec3 v_color;\nout vec2 v_texture;\n\nvoid main()\n{\n gl_Position = projection * view * model * vec4(a_position, 1.0);\n v_texture = a_texture;\n}\n'], GL_VERTEX_SHADER)Metadata
Metadata
Assignees
Labels
No labels