mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Better code
This commit is contained in:
@ -34,7 +34,7 @@ class Sphere : public Object
|
||||
throw std::runtime_error("Missing material properties");
|
||||
|
||||
_position = glm::vec3(x, y, z);
|
||||
_radius = radius;
|
||||
_radius = radius / 2.0;
|
||||
|
||||
_mat_index = mat_index;
|
||||
}
|
||||
|
Reference in New Issue
Block a user