Added mirror reflections.

This commit is contained in:
2016-12-27 19:22:34 -04:00
parent 1b8b382b0e
commit 414e907ee8
6 changed files with 3710 additions and 3568 deletions

View File

@@ -13,9 +13,13 @@ public:
vec3 m_center;
float m_radius;
Sphere(): m_center(vec3(0.0f)), m_radius(0.5f) { }
Sphere(): m_center(vec3(0.0f)), m_radius(0.5f) {
rho = 0.0f;
}
Sphere(float x, float y, float z, float r): m_center(vec3(x, y, z)), m_radius(r) { }
Sphere(float x, float y, float z, float r): m_center(vec3(x, y, z)), m_radius(r) {
rho = 0.0f;
}
Sphere(vec3 _c, float r): m_center(_c), m_radius(r) { }