Added presentations from EVI 2017

This commit is contained in:
Miguel Angel Astor Romero
2017-10-23 15:25:36 -04:00
parent 68ae52b86a
commit d60fc66a77
52 changed files with 3409 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#include "sphere_area_light.hpp"
vec3 SphereAreaLight::sample_at_surface() {
Sphere * s = static_cast<Sphere *>(m_figure);
m_last_sample = m_figure->sample_at_surface();
m_n_at_last_sample = normalize(vec3((m_last_sample - s->m_center) / s->m_radius));
return m_last_sample;
}