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:
247 bytes
|
Rev | Line | |
---|
[102] | 1 | #version 120
|
---|
[161] | 2 | attribute vec2 nv_position;
|
---|
| 3 | attribute vec4 nv_color;
|
---|
| 4 | uniform mat4 nv_projection;
|
---|
[102] | 5 | varying vec4 f_color;
|
---|
| 6 |
|
---|
| 7 | void main(void) {
|
---|
[161] | 8 | f_color = nv_color;
|
---|
| 9 | gl_Position = nv_projection * vec4( nv_position.x, nv_position.y, 0.0, 1.0 );
|
---|
[102] | 10 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.