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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.