converted shapes/Intersect::intersect() to using BoolIntersectionList
git-svn-id: svn://anubis/fart/trunk@152 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
2e6c62a032
commit
bcbec65a8f
4 files changed
+78
-27
No files matched your search
+2
-2
@@ -177,8 +177,8 @@ vector<Scene::ShapeDistance> Scene::getRayHits(const Ray & ray)
|
||||
i < num_results;
|
||||
i++)
|
||||
{
|
||||
refptr<Shape> shape = intersections[i].first;
|
||||
const Vector & isect_point = intersections[i].second;
|
||||
refptr<Shape> shape = intersections[i].shape;
|
||||
const Vector & isect_point = intersections[i].vector;
|
||||
Vector normal = shape->getNormalAt(isect_point);
|
||||
double dot = normal % ray.getDirection();
|
||||
double intersect_dist = (isect_point - ray.getOrigin()).mag();
|
||||
|
||||
Reference in new issue
Block a user