rpthorne / cs_raytrace

1 stars 1 forks source link

Normals need to be computed relative to the direction of collision #3

Closed rpthorne closed 5 years ago

rpthorne commented 5 years ago

normals for most surfaces are single directional. this causes problems when reflecting and refracting rays because if the normal is facing away from the incoming ray's source, refraction cannot be computed properly

rpthorne commented 5 years ago

relatively simple fix solved in all cases in collide,