Skip to content
Snippets Groups Projects
Commit 5b5ee8bc authored by Yoel's avatar Yoel
Browse files

Light now has a function that determines the amount of light emitted by the Light in direction d

parent f5fcf0b0
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,7 @@ namespace shapes {
class Light {
public:
virtual util::SurfacePoint sampleLight() const = 0;
virtual util::Vec3 calculateLightEmission(const util::SurfacePoint& p,
const util::Vec3& d) 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