mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2026-03-03 19:02:15 +01: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