/* File generated with Shader Minifier 1.1.4
 * http://www.ctrl-alt-test.fr
 */
#ifndef SHADER_CODE_H_
# define SHADER_CODE_H_
# define VAR_COL "a"
# define VAR_MATM "f"
# define VAR_MATN "t"
# define VAR_MATP "s"
# define VAR_NRM "u"
# define VAR_TIME "i"
# define VAR_UV "z"
# define VAR_VUV "n"
# define VAR_VCOL "m"
# define VAR_VNRM "c"
# define VAR_VPOS "v"

const char *trail_vs =
 "#version 100\n"
 "attribute vec3 v;"
 "attribute vec4 m;"
 "attribute vec3 c;"
 "attribute vec2 n;"
 "varying vec4 a;"
 "varying vec3 u;"
 "varying vec2 z;"
 "uniform mat4 f,s,t;"
 "uniform float i;"
 "void main()"
 "{"
   "vec3 g=v,w=c;"
   "float e=mod(g.z/5.-i*4.,3.1416),r=sin(e)*8.-8.;"
   "g+=w*r;"
   "w.z=cos(e)*2.;"
   "w=normalize(w);"
   "a=m;"
   "a.w=1.-abs(g.z-225.)/200.;"
   "gl_Position=s*f*vec4(g,1.);"
   "u=(t*vec4(w,1.)).xyz;"
   "z=n;"
 "}";

#endif // SHADER_CODE_H_
