aboutsummaryrefslogtreecommitdiff
path: root/channel_3d_gl_interop.py
diff options
context:
space:
mode:
Diffstat (limited to 'channel_3d_gl_interop.py')
-rw-r--r--channel_3d_gl_interop.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/channel_3d_gl_interop.py b/channel_3d_gl_interop.py
index 376276c..3b93f86 100644
--- a/channel_3d_gl_interop.py
+++ b/channel_3d_gl_interop.py
@@ -134,8 +134,10 @@ fragment_shader = shaders.compileShader("""
in vec3 color;
+layout(location = 0) out vec4 frag_color;
+
void main(){
- gl_FragColor = vec4(color.xyz, 0.0);
+ frag_color = vec4(color.xyz, 0.0);
}""", GL_FRAGMENT_SHADER)
lighting_vertex_shader = shaders.compileShader("""