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

New Shape-method which takes position and calcs the uvs depending on the shape

parent e804ccba
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ namespace shapes {
class Shape {
public:
virtual std::optional<cam::Hit> intersect(const cam::Ray& r) const = 0;
virtual std::pair<float, float> texture_coordinates(
const util::Vec3& pos) const = 0;
virtual util::AxisAlignedBoundingBox bounds() 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