Added tone mapping with FreeImage.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-16 12:44:45 -04:00
parent 8e2b2a8c2a
commit 04618e518e
4 changed files with 36 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ vec3 WhittedTracer::trace_ray(Ray & r, vector<Figure *> & v_figures, vector<Ligh
}
// Return final color.
return clamp(color, 0.0f, 1.0f);
return color;
} else
return BCKG_COLOR;