aboutsummaryrefslogtreecommitdiff
path: root/trugfeuer_2d_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 /trugfeuer_2d_gl_interop.py
parent8c207f1424f8865d7e9af990326000b3dc733db4 (diff)
downloadsymlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar.gz
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar.bz2
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar.lz
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar.xz
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.tar.zst
symlbm_playground-a49886ba29d0f28d3d4fe562a935defdaeb7a738.zip
Replace deprecated gl_FragColorHEADmaster
Diffstat (limited to 'trugfeuer_2d_gl_interop.py')
-rw-r--r--trugfeuer_2d_gl_interop.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/trugfeuer_2d_gl_interop.py b/trugfeuer_2d_gl_interop.py
index b2ec534..0ae7bde 100644
--- a/trugfeuer_2d_gl_interop.py
+++ b/trugfeuer_2d_gl_interop.py
@@ -90,8 +90,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_shader = shaders.compileShader(Template("""