2017-02-09 23:37:40 -04:00
|
|
|
#include "disk_area_light.hpp"
|
|
|
|
|
|
2017-02-22 15:12:01 -04:00
|
|
|
vec3 DiskAreaLight::sample_at_surface() {
|
2017-02-09 23:37:40 -04:00
|
|
|
Disk * d = static_cast<Disk *>(m_figure);
|
|
|
|
|
m_last_sample = m_figure->sample_at_surface();
|
|
|
|
|
m_n_at_last_sample = d->m_normal;
|
2017-02-22 15:12:01 -04:00
|
|
|
return m_last_sample;
|
2017-02-09 23:37:40 -04:00
|
|
|
}
|