Ignore:
Timestamp:
07/31/15 20:25:22 (10 years ago)
Author:
epyon
Message:
  • math library work
  • glm only referenced in math/common.hh
  • still a lot work to do, but its WURF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/keyframed_mesh.cc

    r451 r454  
    217217                for ( size_t i = 0; i < m_vertex_count; ++i )
    218218                {
    219                         vtx[i].position = glm::mix( prev[i].position, next[i].position, m_interpolation );
    220                         vtx[i].normal   = glm::mix( prev[i].normal,   next[i].normal,   m_interpolation );
    221                         vtx[i].tangent  = glm::mix( prev[i].tangent,  next[i].tangent,   m_interpolation );
     219                        vtx[i].position = math::mix( prev[i].position, next[i].position, m_interpolation );
     220                        vtx[i].normal   = math::mix( prev[i].normal,   next[i].normal,   m_interpolation );
     221                        vtx[i].tangent  = math::mix( prev[i].tangent,  next[i].tangent,   m_interpolation );
    222222                }
    223223        }
     
    231231                for ( size_t i = 0; i < m_vertex_count; ++i )
    232232                {
    233                         vtx[i].position = glm::mix( prev[i].position, next[i].position, m_interpolation );
    234                         vtx[i].normal   = glm::mix( prev[i].normal,   next[i].normal,   m_interpolation );
     233                        vtx[i].position = math::mix( prev[i].position, next[i].position, m_interpolation );
     234                        vtx[i].normal   = math::mix( prev[i].normal,   next[i].normal,   m_interpolation );
    235235                }
    236236        }
Note: See TracChangeset for help on using the changeset viewer.