miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
s_sight Struct Reference

The struct s_sight represents the human eye looking forwards. More...

#include <lights.h>

Collaboration diagram for s_sight:

Data Fields

t_vector eyev
 
t_vector normalv
 

Detailed Description

The struct s_sight represents the human eye looking forwards.

For the Phong Reflection Model algorithm, this human sight has an eye vision, which is the direction where the eyes are looking at and it also has a normal vision, i.e., the perpendicular vector from where the eye vision is looking at.

Parameters
eyevRepresents the eye's vector looking at something.
normalvRepresents the normal vector of some surface.