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

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