Added experiment for new fastCos. More sRGB tests.

This commit is contained in:
Christophe Riccio
2015-06-27 18:36:17 +02:00
parent 83409a0720
commit 08eedc6209
5 changed files with 342 additions and 29 deletions

View File

@@ -168,6 +168,22 @@ namespace mod_
{
int Error(0);
{
float A(1.5f);
float B(1.0f);
float C = glm::mod(A, B);
Error += glm::abs(C - 0.5f) < 0.00001f ? 0 : 1;
}
{
float A(-0.2f);
float B(1.0f);
float C = glm::mod(A, B);
Error += glm::abs(C - 0.8f) < 0.00001f ? 0 : 1;
}
{
float A(3.0);
float B(2.0f);