Ignore:
Timestamp:
05/16/14 05:48:01 (11 years ago)
Author:
epyon
Message:
  • mesh data interface and usage
  • new wavefront importer (old pending removal)
  • updates to test projects
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/render_test/char.vert

    r46 r238  
    11#version 120
    2 attribute vec3 coords;
    3 attribute vec3 material;
     2attribute vec3 nv_position;
     3attribute vec3 nv_color;
     4uniform mat4 nv_m_mvp;
     5
    46varying vec3 f_coord;
    57varying vec3 f_material;
    6 uniform mat4 matrix_mvp;
    78uniform vec3 pos;
    89
    910void 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);
    1314}
Note: See TracChangeset for help on using the changeset viewer.