karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

Why does struct Camera has an attribute for eye? #10

Open Ming-Yeung-Alfred-Meng opened 2 years ago

Ming-Yeung-Alfred-Meng commented 2 years ago

Why do we not just assume eye to be (0, 0, 0), so there is no need to store it?

shahmeerathar commented 2 years ago

My understanding could be wrong, but the coordinates of the eye we are given are in world space, not camera space which is what (0,0,0) would be