Skip to content
Snippets Groups Projects
Commit 0bd92a61 authored by Yoel's avatar Yoel
Browse files

calculateLightEmission split into lightEmission, lightPdf

parent 501f94f0
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,10 @@ namespace shapes {
class Light {
public:
virtual util::SurfacePoint sampleLight(const cam::Hit& h) const = 0;
virtual util::Vec3 calculateLightEmission(const util::SurfacePoint& p,
const util::Vec3& d) const = 0;
virtual util::Vec3 lightEmission(const util::SurfacePoint& p) const = 0;
virtual float lightPdf(const util::SurfacePoint& p,
const util::Vec3& dl_out) const = 0;
virtual std::optional<cam::Hit> intersect(const cam::Ray& r) const = 0;
};
} // namespace shapes
\ No newline at end of file
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