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

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