// Copyright 2025 JogAmp Community. All rights reserved.

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

uniform mat4 gcu_PMVMatrix[2];

attribute vec3 gca_Vertex;
attribute vec3 gca_Color;

varying vec3 gcv_FillColor;

void main()
{
  gcv_FillColor = gca_Color;
  gl_Position = gcu_PMVMatrix[0] * gcu_PMVMatrix[1] * vec4(gca_Vertex, 1);
}