Ejemplo n.º 1
0
glm::vec3 DynamicNonUniformScale(float fElapsedTime) {
	const float fXLoopDuration = 3.0f;
	const float fZLoopDuration = 5.0f;

	return glm::vec3(glm::mix(1.0f, 0.5f, CalcLerpFactor(fElapsedTime, fXLoopDuration)),
		1.0f,
		glm::mix(1.0f, 10.0f, CalcLerpFactor(fElapsedTime, fZLoopDuration)));
}
Ejemplo n.º 2
0
glm::vec3 DynamicUniformScale(float fElapsedTime)
{
	const float fLoopDuration = 3.0f;

	return glm::vec3(glm::mix(1.0f, 4.0f, CalcLerpFactor(fElapsedTime, fLoopDuration)));
}