Tentative fix of GTC_type_precision

This commit is contained in:
Christophe Riccio
2017-08-15 15:12:04 +02:00
parent 118be2fe8d
commit bacbc2ab99
2 changed files with 63 additions and 52 deletions

View File

@@ -39,7 +39,7 @@ int test_quat_angleAxis()
{
int Error = 0;
glm::quat A = glm::angleAxis(0.0f, glm::vec3(0, 0, 1));
glm::quat A = glm::angleAxis(0.f, glm::vec3(0.f, 0.f, 1.f));
glm::quat B = glm::angleAxis(glm::pi<float>() * 0.5f, glm::vec3(0, 0, 1));
glm::quat C = glm::mix(A, B, 0.5f);
glm::quat D = glm::angleAxis(glm::pi<float>() * 0.25f, glm::vec3(0, 0, 1));
@@ -56,7 +56,7 @@ int test_quat_mix()
{
int Error = 0;
glm::quat A = glm::angleAxis(0.0f, glm::vec3(0, 0, 1));
glm::quat A = glm::angleAxis(0.f, glm::vec3(0.f, 0.f, 1.f));
glm::quat B = glm::angleAxis(glm::pi<float>() * 0.5f, glm::vec3(0, 0, 1));
glm::quat C = glm::mix(A, B, 0.5f);
glm::quat D = glm::angleAxis(glm::pi<float>() * 0.25f, glm::vec3(0, 0, 1));