Last change
on this file since 505 was
267,
checked in by epyon, 11 years ago
|
- gui::element class now pure data
- gui::element related code in environment
- gui shaders use general library mechanism
|
File size:
339 bytes
|
Rev | Line | |
---|
[127] | 1 | #version 120
|
---|
[161] | 2 | attribute vec2 nv_position;
|
---|
| 3 | attribute vec2 nv_texcoord;
|
---|
| 4 | attribute vec4 nv_color;
|
---|
[267] | 5 | uniform mat4 nv_m_projection;
|
---|
[161] | 6 | varying vec4 v_color;
|
---|
| 7 | varying vec2 v_texcoord;
|
---|
[127] | 8 |
|
---|
| 9 | void main(void) {
|
---|
[161] | 10 | v_color = nv_color;
|
---|
| 11 | v_texcoord = nv_texcoord;
|
---|
[267] | 12 | gl_Position = nv_m_projection * vec4( nv_position.x, nv_position.y, 0.0, 1.0 );
|
---|
[127] | 13 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.