
#if __VERSION__ >= 130
  #define attribute in
  #define varying out
#endif

#include es_precision.glsl

#include mgl_const.glsl
#include mgl_uniform.glsl
#include mgl_attribute.glsl
#include mgl_varying.glsl

#include mgl_settexcoord.vp

void main(void)
{
  if(mgl_ColorEnabled>0) {
    frontColor=mgl_Color;
  } else {
    frontColor=mgl_ColorStatic;
  }

  gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;

  setTexCoord(gl_Position);
}

