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

Refactor albedo and emision methods, texels are float-pairs

parent 9fdb6c9d
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ namespace material {
class Material {
public:
virtual util::Vec3 albedo(float texel_x, float texel_y) const = 0;
virtual util::Vec3 emission(float texel_x, float texel_y) const = 0;
virtual util::Vec3 albedo(const std::pair<float, float>& uv) const = 0;
virtual util::Vec3 emission(const std::pair<float, float>& uv) const = 0;
virtual util::Vec3 scattered_d(const util::Vec3& d,
const util::Vec3& n) const = 0;
virtual bool scatter(const util::Vec3& d, const util::Vec3& n) const = 0;
......
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