+ | Better code

This commit is contained in:
TheRedShip
2025-01-03 00:22:58 +01:00
parent 1c619b76d1
commit f973d77654
10 changed files with 3090 additions and 10 deletions

View File

@ -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;
}