Last change
on this file since 477 was
238,
checked in by epyon, 11 years ago
|
- mesh data interface and usage
- new wavefront importer (old pending removal)
- updates to test projects
|
File size:
294 bytes
|
Line | |
---|
1 | #version 120
|
---|
2 | attribute vec3 nv_position;
|
---|
3 | attribute vec3 nv_color;
|
---|
4 | uniform mat4 nv_m_mvp;
|
---|
5 |
|
---|
6 | varying vec3 f_coord;
|
---|
7 | varying vec3 f_material;
|
---|
8 | uniform vec3 pos;
|
---|
9 |
|
---|
10 | void main(void) {
|
---|
11 | f_coord = nv_position;
|
---|
12 | f_material = nv_color;
|
---|
13 | gl_Position = nv_m_mvp * vec4(nv_position + pos, 1.0);
|
---|
14 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.