BSVogler/Raytracer

Sphere intersect should return the normal

Closed this issue · 1 comments

std::pair<bool, glm::vec3> Sphere::intersect(Ray const& ray) const

= becomes =>

std::pair<bool, Ray> Sphere::intersect(Ray const& ray) const

it seems it returns the normal. Can not confirm because image is strange. Maybe because of #15