Changeset 161 for trunk/src/formats


Ignore:
Timestamp:
07/15/13 02:48:06 (12 years ago)
Author:
epyon
Message:
  • unified naming of attributes in nv
  • predefined attribute bindings based on unified names
  • unified naming of attributes in all tests
Location:
trunk/src/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/md3_loader.cc

    r156 r161  
    313313        }
    314314
    315         vertex_attribute< vec3 >* position = m->add_attribute<vec3>("position");
    316         vertex_attribute< vec3 >* normal   = m->add_attribute<vec3>("normal");
    317         vertex_attribute< vec2 >* texcoord = m->add_attribute<vec2>("texcoord");
     315        vertex_attribute< vec3 >* position = m->add_attribute<vec3>("nv_position");
     316        vertex_attribute< vec3 >* normal   = m->add_attribute<vec3>("nv_normal");
     317        vertex_attribute< vec2 >* texcoord = m->add_attribute<vec2>("nv_texcoord");
    318318        vertex_attribute< uint16 >* indices  = m->add_indices<uint16>();
    319319
  • trunk/src/formats/obj_loader.cc

    r148 r161  
    140140        if ( m_position == nullptr )
    141141        {
    142                 m_position  = m_mesh->add_attribute< vec3 >( "position" );
     142                m_position  = m_mesh->add_attribute< vec3 >( "nv_position" );
    143143        }
    144144        if ( m_tex_coord == nullptr )
    145145        {
    146                 m_tex_coord = m_mesh->add_attribute< vec2 >( "texcoord" );
     146                m_tex_coord = m_mesh->add_attribute< vec2 >( "nv_texcoord" );
    147147        }
    148148        if ( m_normal == nullptr && ni != nullptr )
    149149        {
    150                 m_normal = m_mesh->add_attribute< vec3 >( "normal" );
     150                m_normal = m_mesh->add_attribute< vec3 >( "nv_normal" );
    151151        }
    152152
     
    174174void mesh_obj_reader::calculate_tangents()
    175175{
    176         m_tangent = m_mesh->add_attribute< vec4 >( "tangent" );
     176        m_tangent = m_mesh->add_attribute< vec4 >( "nv_tangent" );
    177177
    178178        std::vector< vec3 >& vp = m_position->get();
Note: See TracChangeset for help on using the changeset viewer.