// Copyright 2010 JogAmp Community. All rights reserved.

/**
 * AMD complains: #version must occur before any other statement in the program
#ifdef GL_ES
    #version 100
#else
    #version 110
#endif
 */

#ifdef GL_ES
  precision mediump float;
  precision mediump int;
#endif

uniform mat4    mgl_PMVMatrix[2];
attribute vec4    mgl_Vertex;
attribute vec4    mgl_Color;
varying vec4    frontColor;

void main(void)
{
  frontColor=mgl_Color;
  gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;
}

