Changeset 161 for trunk/src/formats
- Timestamp:
- 07/15/13 02:48:06 (12 years ago)
- Location:
- trunk/src/formats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/md3_loader.cc
r156 r161 313 313 } 314 314 315 vertex_attribute< vec3 >* position = m->add_attribute<vec3>(" position");316 vertex_attribute< vec3 >* normal = m->add_attribute<vec3>("n ormal");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"); 318 318 vertex_attribute< uint16 >* indices = m->add_indices<uint16>(); 319 319 -
trunk/src/formats/obj_loader.cc
r148 r161 140 140 if ( m_position == nullptr ) 141 141 { 142 m_position = m_mesh->add_attribute< vec3 >( " position" );142 m_position = m_mesh->add_attribute< vec3 >( "nv_position" ); 143 143 } 144 144 if ( m_tex_coord == nullptr ) 145 145 { 146 m_tex_coord = m_mesh->add_attribute< vec2 >( " texcoord" );146 m_tex_coord = m_mesh->add_attribute< vec2 >( "nv_texcoord" ); 147 147 } 148 148 if ( m_normal == nullptr && ni != nullptr ) 149 149 { 150 m_normal = m_mesh->add_attribute< vec3 >( "n ormal" );150 m_normal = m_mesh->add_attribute< vec3 >( "nv_normal" ); 151 151 } 152 152 … … 174 174 void mesh_obj_reader::calculate_tangents() 175 175 { 176 m_tangent = m_mesh->add_attribute< vec4 >( " tangent" );176 m_tangent = m_mesh->add_attribute< vec4 >( "nv_tangent" ); 177 177 178 178 std::vector< vec3 >& vp = m_position->get();
Note: See TracChangeset
for help on using the changeset viewer.