Exemplo n.º 1
0
void Mesh::BindNormalMap(const Texture2D &normalMap) {
	delete this->normalMap;
	this->normalMap = new Texture2D(normalMap);
	if (!tangentsComputed) {
		RecalcTangents();
		tangentsComputed = true;
	}
}
Exemplo n.º 2
0
 void RotationalSpline::AddPoint(const DiQuat& p)
 {
     mPoints.push_back(p);
     if (mAutoCalc)
     {
         RecalcTangents();
     }
 }
Exemplo n.º 3
0
    void RotationalSpline::UpdatePoint(unsigned short index, const DiQuat& value)
    {
        DI_ASSERT (index < mPoints.size());

        mPoints[index] = value;
        if (mAutoCalc)
        {
            RecalcTangents();
        }
    }
Exemplo n.º 4
0
void ActionBySpline::UpdatePoint(uint index, const Vector3 &value)
{
	m_vPoints[index] = value;
	RecalcTangents();
}
Exemplo n.º 5
0
void ActionBySpline::Reset()
{
	m_fCurrenTime = 0.0f;
	RecalcTangents();
}