diff options
Diffstat (limited to 'chickadee/render/particles.scm')
-rw-r--r-- | chickadee/render/particles.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chickadee/render/particles.scm b/chickadee/render/particles.scm index d046caf..c81209a 100644 --- a/chickadee/render/particles.scm +++ b/chickadee/render/particles.scm @@ -121,14 +121,24 @@ layout (location = 0) in vec2 position; layout (location = 1) in vec2 tex; layout (location = 2) in vec2 offset; layout (location = 3) in float life; -#elif ifdef GLSL130 +#elif defined(GLSL130) in vec2 position; in vec2 tex; in vec2 offset; in float life; +#elif defined(GLSL120) +attribute vec2 position; +attribute vec2 tex; +attribute vec2 offset; +attribute float life; #endif +#ifdef GLSL120 +varying vec2 fragTex; +varying float t; +#else out vec2 fragTex; out float t; +#endif uniform mat4 mvp; uniform int lifetime; uniform int animationRows; @@ -147,8 +157,13 @@ void main(void) { } " " +#ifdef GLSL120 +attribute vec2 fragTex; +attribute float t; +#else in vec2 fragTex; in float t; +#endif #ifdef GLSL330 out vec4 fragColor; #endif |