sphere and disk area lights mostly ready (I think :S).

This commit is contained in:
2017-02-09 23:37:40 -04:00
parent 944ae05db7
commit 0cdc7c46ca
30 changed files with 512 additions and 83 deletions

View File

@@ -19,3 +19,11 @@ bool Plane::intersect(Ray & r, float & t) const {
vec3 Plane::normal_at_int(Ray & r, float & t) const {
return vec3(m_normal);
}
vec3 Plane::sample_at_surface() const {
return vec3(0.0f);
}
void Plane::calculate_inv_area() {
m_inv_area = 0.0f;
}