diff options
Diffstat (limited to 'src/engine/object.h')
| -rw-r--r-- | src/engine/object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/object.h b/src/engine/object.h index 19938d8..790fe25 100644 --- a/src/engine/object.h +++ b/src/engine/object.h @@ -22,6 +22,7 @@ namespace Donut float m_specular; float m_emission; + Material() : m_color(1.0f, 1.0f, 1.0f), m_specular(0.5f), m_emission(0.0f) { } Material(glm::vec3 c, float s, float e) : m_color(c), m_specular(s), @@ -35,6 +36,7 @@ namespace Donut float m_radius; Material m_material; + Object() : m_centre(0.0f, 0.0f, 0.0f), m_radius(1.0f), m_material() { } Object(glm::vec3 c, float r, Material m) : m_centre(c), m_radius(r), |
