reformat ray and hitrecord

This commit is contained in:
Shuo Feng 2024-03-14 18:43:28 -04:00
parent 08cbf7733f
commit 9e9d7351bd
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
6 changed files with 25 additions and 25 deletions

View file

@ -20,7 +20,7 @@ bool Light::isUse() const { return use; }
Vector3f PointLight::illumination(const HitRecord &hit,
const vector<Geometry *> &geometries) const {
Vector3f shadingPoint = hit.getPoint();
Vector3f shadingPoint = hit.point();
Vector3f rayDirection = (center - shadingPoint).normalized();
Geometry *geometry = hit.geometry();
Ray shadowRay(shadingPoint, rayDirection);