+ | Multiple sphere sent to GPU working

This commit is contained in:
TheRedShip
2024-12-24 01:44:53 +01:00
parent 7b56daf149
commit 216e9a684a
10 changed files with 166 additions and 62 deletions

View File

@ -18,13 +18,14 @@
class Sphere : public Object
{
public:
float radius;
glm::vec3 position;
Sphere(const glm::vec3& position, float radius, const Material& material)
: Object(position, material), _radius(radius) {}
float getRadius() const { return (_radius); }
Type getType() const override { return Type::SPHERE; }
private:
float _radius;
};
#endif