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

Added Texels to Hit

parent 2e0197bf
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
#include <limits> #include <limits>
namespace cam { namespace cam {
Hit::Hit(const util::Vec3& hit, const util::Vec3& n, float t, Hit::Hit(const util::Vec3& hit, const util::Vec3& n,
const std::pair<float, float>& uv, float t,
const std::shared_ptr<material::Material>& material) const std::shared_ptr<material::Material>& material)
: util::SurfacePoint(hit, n, material), t(t) { : util::SurfacePoint(hit, n, uv, material), t(t) {
} }
float Hit::scalar() const { float Hit::scalar() const {
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
namespace cam { namespace cam {
class Hit : public util::SurfacePoint { class Hit : public util::SurfacePoint {
public: public:
Hit(const util::Vec3& hit, const util::Vec3& n, float t, Hit(const util::Vec3& hit, const util::Vec3& n,
const std::pair<float, float>& uv, float t,
const std::shared_ptr<material::Material>& material); const std::shared_ptr<material::Material>& material);
float scalar() const; float scalar() const;
......
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