RAS_ITexVert::RAS_ITexVert(const MT_Vector3& xyz, const MT_Vector4& tangent, const MT_Vector3& normal) { xyz.getValue(m_localxyz); SetNormal(normal); SetTangent(tangent); }
void RAS_TexVert::Transform(const MT_Matrix4x4& mat, const MT_Matrix4x4& nmat) { SetXYZ((mat*MT_Vector4(m_localxyz[0], m_localxyz[1], m_localxyz[2], 1.0)).getValue()); SetNormal((nmat*MT_Vector4(m_normal[0], m_normal[1], m_normal[2], 1.0)).getValue()); SetTangent((nmat*MT_Vector4(m_tangent[0], m_tangent[1], m_tangent[2], 1.0)).getValue()); }