summaryrefslogtreecommitdiffstats
path: root/src/demos/instancedRendering/shader/triangles.fp
blob: 005884a1fa1bae8907a41b52c3ddcdeca978d962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2014 JogAmp Community. All rights reserved.

#if __VERSION__ >= 130
  #define varying in
  out vec4 mgl_FragColor;
  #define texture2D texture
#else
  #define mgl_FragColor gl_FragColor   
#endif

varying vec4    frontColor;

void main (void) {
	mgl_FragColor = frontColor; 
}