Changeset 238 for trunk/tests/render_test/char.vert
- Timestamp:
- 05/16/14 05:48:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/render_test/char.vert
r46 r238 1 1 #version 120 2 attribute vec3 coords; 3 attribute vec3 material; 2 attribute vec3 nv_position; 3 attribute vec3 nv_color; 4 uniform mat4 nv_m_mvp; 5 4 6 varying vec3 f_coord; 5 7 varying vec3 f_material; 6 uniform mat4 matrix_mvp;7 8 uniform vec3 pos; 8 9 9 10 void main(void) { 10 f_coord = coords;11 f_material = material;12 gl_Position = matrix_mvp * vec4(coords+ pos, 1.0);11 f_coord = nv_position; 12 f_material = nv_color; 13 gl_Position = nv_m_mvp * vec4(nv_position + pos, 1.0); 13 14 }
Note: See TracChangeset
for help on using the changeset viewer.