Skip to content
Snippets Groups Projects
Commit 46637d06 authored by Yoel's avatar Yoel
Browse files

Materials now have a function: brdf_pdf

parent 9fda80ee
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ class Material {
virtual float calculateLightMultiplier(const util::Vec3& d_in,
const util::Vec3& d_out,
const util::Vec3& n) const = 0;
virtual float brdf_pdf(const util::Vec3& d_out,
const util::Vec3& n) const = 0;
virtual std::optional<float> emission_pdf(float u, float v) const = 0;
};
util::Vec3 reflection(const util::Vec3& d, const util::Vec3& n);
......
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