source: trunk/tests/gui_test/gui.vert @ 161

Last change on this file since 161 was 161, checked in by epyon, 12 years ago
  • unified naming of attributes in nv
  • predefined attribute bindings based on unified names
  • unified naming of attributes in all tests
File size: 335 bytes
RevLine 
[127]1#version 120
[161]2attribute vec2 nv_position;
3attribute vec2 nv_texcoord;
4attribute vec4 nv_color;
5uniform mat4 nv_projection;
6varying vec4 v_color;
7varying vec2 v_texcoord;
[127]8
9void main(void) {
[161]10        v_color     = nv_color;
11        v_texcoord  = nv_texcoord;
12        gl_Position = nv_projection * vec4( nv_position.x, nv_position.y, 0.0, 1.0 );
[127]13}
Note: See TracBrowser for help on using the repository browser.