mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
reformat ray and hitrecord
This commit is contained in:
parent
08cbf7733f
commit
9e9d7351bd
6 changed files with 25 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue