boromisp ed12134f34 Fixed the original ray-sphere intersection
Changed the original analytic method to a geometrical.

The errors in the original intersection calculation:
The function has a sphere center parameter, but ignores it and assumes
that the sphere is in the origo.
It calculates the length of the ray direction vector, but later on uses
this vector as a unit vector.
The position calculation is simply wrong. It multiplies the direction
vector with the radius of the sphere instead of the calculated
intersection distance.

The quadratic equation solving could be improved too:
There should be an early exit for negative discriminant.
The naive implementation sould be changed to a floating-point
specialized one.
2012-11-11 23:41:11 +01:00
..
core Fixed component swapping in tmat2x2::_inverse(). 2012-10-22 17:23:03 -04:00
gtc Deleted VIRTREV_xstream 2012-06-28 17:01:02 +01:00
gtx Fixed the original ray-sphere intersection 2012-11-11 23:41:11 +01:00
virtrev Deleted VIRTREV_xstream 2012-06-28 17:01:02 +01:00
CMakeLists.txt Updated extensions list 2011-01-19 16:02:13 +00:00
ext.hpp Updated copyright date 2012-01-09 11:20:01 +00:00
glm.hpp Updated copyright date 2012-01-09 11:20:01 +00:00