opengl_vertex.glsl 193 B

123456789
  1. uniform mat4 mWorldViewProj;
  2. uniform mat4 mWorld;
  3. void main(void)
  4. {
  5. gl_TexCoord[0] = gl_MultiTexCoord0;
  6. gl_Position = mWorldViewProj * gl_Vertex;
  7. gl_FrontColor = gl_BackColor = gl_Color;
  8. }