Sources/CcgDump/CrySkinBase.cpp
// adds the given smooth point into the destination with the matrix

adds the given smooth point into the destination with the matrix
adds the given smooth point into the destination with the matrix
void CrySkinBase::addWVector (Vec3d& pDest, const Matrix44& matBone, const Vertex& rVtx)
{
  pDest.x += ((matBone[0][0] * rVtx.pt.x) + (matBone[1][0] * rVtx.pt.y) + (matBone[2][0] * rVtx.pt.z)) * rVtx.fWeight;
  pDest.y += ((matBone[0][1] * rVtx.pt.x) + (matBone[1][1] * rVtx.pt.y) + (matBone[2][1] * rVtx.pt.z)) * rVtx.fWeight;
  pDest.z += ((matBone[0][2] * rVtx.pt.x) + (matBone[1][2] * rVtx.pt.y) + (matBone[2][2] * rVtx.pt.z)) * rVtx.fWeight;
}
void CrySkinBase :: addWVector ( Vec3d & pDest , const Matrix44 & matBone , const Vertex & rVtx ) { pDest . x += ( ( matBone [ 0 ] [ 0 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 0 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 0 ] * rVtx . pt . z ) ) * rVtx . fWeight ; pDest . y += ( ( matBone [ 0 ] [ 1 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 1 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 1 ] * rVtx . pt . z ) ) * rVtx . fWeight ; pDest . z += ( ( matBone [ 0 ] [ 2 ] * rVtx . pt . x ) + ( matBone [ 1 ] [ 2 ] * rVtx . pt . y ) + ( matBone [ 2 ] [ 2 ] * rVtx . pt . z ) ) * rVtx . fWeight ; }
adds the given smooth point into the destination with the matrix
adds the given smooth point into the destination with the matrix
//pDest += matBone.TransformPoint(rVtx) * rVtx.fWeight;
