karansher / computer-graphics-ray-casting

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

Do we have to normalize all normal vectors? #14

Closed Ming-Yeung-Alfred-Meng closed 1 year ago

Glowies commented 1 year ago

Sometimes the normal vectors will be provided to you in normalized form; however, it is a good idea to normalize all of them just to be sure. Often, when you perform some operations on your normals (eg: cross product) you will end up with different sized vectors, so it's best to normalize them again right before you use them.