aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/shader/texture01_xxx.vp
blob: d9ef6b4930c83e2f32e14a86e983707fcce5e289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2012 JogAmp Community. All rights reserved.

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

uniform   mat4    mgl_PMVMatrix[2];

attribute vec4    mgl_Vertex;
attribute vec4    mgl_MultiTexCoord;

varying   vec2    mgl_texCoord;

void main(void)
{
  mgl_texCoord = mgl_MultiTexCoord.st;
  gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;
}