More photons.

This commit is contained in:
2017-03-15 15:55:35 -04:00
parent c29d64583f
commit 811e0a0602
4 changed files with 26 additions and 36 deletions

View File

@@ -418,7 +418,7 @@ void kdTree::find_by_distance(std::vector<Photon> & found, const glm::vec3 & poi
p_pos = glm::vec3((*it).position.x, (*it).position.y, (*it).position.z);
if (glm::distance(p_pos, point) < distance && glm::dot(glm::normalize(p_pos - point), normal) < glm::pi<float>() / 2.0f)
found.push_back((*it));
if (found.size() >= max)
break;
// if (found.size() >= max)
// break;
}
}