Added emissive color to material.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-17 17:20:58 -04:00
parent 8d341b9a25
commit 965b04ca39
3 changed files with 3 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ vec3 PathTracer::trace_ray(Ray & r, vector<Figure *> & v_figures, vector<Light *
}
// Return final color.
return color;
return _f->m_mat->m_emission + color;
} else {
if (e != NULL)