projects
/
antikythera
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed libresman renamed resman_lookup to resman_add
[antikythera]
/
src
/
geom.cc
diff --git
a/src/geom.cc
b/src/geom.cc
index
23391a7
..
a6b26e8
100644
(file)
--- a/
src/geom.cc
+++ b/
src/geom.cc
@@
-244,6
+244,7
@@
bool Plane::intersect(const Ray &ray, HitPoint *hit) const
Vec3 ptdir = pt - ray.origin;
float t = dot(normal, ptdir) / ndotdir;
+ hit->dist = t;
hit->pos = ray.origin + ray.dir * t;
hit->normal = normal;
hit->obj = this;