Add function to calculate sphere normal vector on given point on the sphere.
This commit is contained in:
@@ -24,6 +24,11 @@ Intersect Object::intersect(Ray r)
|
||||
return Intersect();
|
||||
};
|
||||
|
||||
Tuple Object::normalAt(Tuple point)
|
||||
{
|
||||
return Vector(0, 0, 0);
|
||||
}
|
||||
|
||||
void Object::setTransform(Matrix transform)
|
||||
{
|
||||
this->transformMatrix = transform;
|
||||
|
||||
Reference in New Issue
Block a user