+ | Material system

This commit is contained in:
TheRedShip
2024-12-24 12:02:52 +01:00
parent 216e9a684a
commit 2f217b50e9
5 changed files with 18 additions and 16 deletions

View File

@ -18,7 +18,7 @@
class Sphere : public Object
{
public:
Sphere(const glm::vec3& position, float radius, const Material& material)
Sphere(const glm::vec3& position, float radius, const Material *material)
: Object(position, material), _radius(radius) {}
float getRadius() const { return (_radius); }