summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-11-19 07:54:09 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-11-19 07:54:09 -0500
commit3d0016c9b83ff71deaf34c7f8a497758a8a310d2 (patch)
tree48c105aeaf0627a86fc4dc01a27dcce77df69477
parent20ed3a8286d8a83623d1dbe84113f6ea8c1fe6fc (diff)
graphics: particles: Make shader compatible with GLSL 1.2.
Hopefully, that is.
-rw-r--r--chickadee/graphics/particles.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/graphics/particles.scm b/chickadee/graphics/particles.scm
index 90cfa11..167f5c7 100644
--- a/chickadee/graphics/particles.scm
+++ b/chickadee/graphics/particles.scm
@@ -174,7 +174,7 @@ uniform vec4 endColor;
void main (void) {
#ifdef GLSL330
fragColor = mix(endColor, startColor, t) * texture(color_texture, fragTex);
-#elif defined(GLSL130)
+#else
gl_FragColor = mix(endColor, startColor, t) * texture2D(color_texture, fragTex);
#endif
}