From 3d0016c9b83ff71deaf34c7f8a497758a8a310d2 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 19 Nov 2020 07:54:09 -0500 Subject: graphics: particles: Make shader compatible with GLSL 1.2. Hopefully, that is. --- chickadee/graphics/particles.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3