Skip to content
Snippets Groups Projects
Commit 84d242a7 authored by Yoel's avatar Yoel
Browse files

PointLight cleanup

parent 161e6f91
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,6 @@ util::SurfacePoint PointLight::sampleLight(const cam::Hit& h) const {
return util::SurfacePoint(util::Vec3(0), h.point().normalize(), {},
material);
}
/*std::pair<util::Vec3, float> PointLight::calculateLightEmission(
const util::SurfacePoint& p, const util::Vec3& d) const {
// Basically this is just the emission at a surface point. And the pdf dimms
// the light in regard to the angle.
auto emission = p.emission();
// Illegally do not divide by area
// auto area = M_PI * std::pow(radius, 2);
auto pdf = std::pow(d.length(), 2);
return {emission, pdf};
}*/
util::Vec3 PointLight::lightEmission(const util::SurfacePoint& p) const {
return p.emission();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment