summaryrefslogtreecommitdiff
path: root/3dmath.c
Commit message (Collapse)AuthorAge
* Subtract the central sphere, and update the animation to matchMorten Hustveit2014-12-02
|
* 3dmath.c: Remove sqrt from sphere_intersectMorten Hustveit2014-12-02
| | | | | Interestingly, this seems to only save 1ms/frame on yelena. But that's still 16% of a 60fps frame.
* 3dmath.c: Early out of sphere_intersect on t <= 0Morten Hustveit2014-12-02
| | | | | | | The loop in ray.c discards any data from intersections with t <= 0 anyway, so we might as well not calculate it. This saves 15 ms/frame on yelena.
* 3dmath.c: Throw restrict on all parameters to sphere_intersectMorten Hustveit2014-12-02
| | | | This saves 3ms / frame on yelena.
* 3dmath.c: In normalize, calculate reciprocal only once, and use sqrtfMorten Hustveit2014-12-02
| | | | This saves about 12ms per frame on yelena.
* 3dmath: Use const-correct function declarationsMorten Hustveit2014-12-02
|
* Minor style changesMorten Hustveit2014-12-02
|
* Works.Martin Stensgård2010-10-20
|
* Fail.Martin Stensgård2010-10-19