mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Multiple sphere sent to GPU working
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user