aboutsummaryrefslogtreecommitdiff
path: root/ldc_3d_gl_interop.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-09-21 22:03:22 +0200
committerAdrian Kummerlaender2022-09-21 22:03:22 +0200
commita49886ba29d0f28d3d4fe562a935defdaeb7a738 (patch)
tree188eecfd696a2a3113e8e5a20f47d9374beb48bc /ldc_3d_gl_interop.py
parent8c207f1424f8865d7e9af990326000b3dc733db4 (diff)
downloadsymlbm_playground-master.tar
symlbm_playground-master.tar.gz
symlbm_playground-master.tar.bz2
symlbm_playground-master.tar.lz
symlbm_playground-master.tar.xz
symlbm_playground-master.tar.zst
symlbm_playground-master.zip
Replace deprecated gl_FragColorHEADmaster
Diffstat (limited to 'ldc_3d_gl_interop.py')
-rw-r--r--ldc_3d_gl_interop.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldc_3d_gl_interop.py b/ldc_3d_gl_interop.py
index 130d8ec..575dc72 100644
--- a/ldc_3d_gl_interop.py
+++ b/ldc_3d_gl_interop.py
@@ -13,7 +13,6 @@ from OpenGL.GLUT import *
from OpenGL.GL import shaders
from utility.projection import Projection, Rotation
-from utility.opengl import MomentsVertexBuffer
from utility.mouse import MouseDragMonitor, MouseScrollMonitor
lattice_x = 64
@@ -117,8 +116,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)
particle_program = shaders.compileProgram(particle_shader, fragment_shader)