medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 29bd02410470bac8c4244d5ac2486bd9e7ba439e
parent 303874ee59bcf29e417ee5b21c55387b32fe90e4
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Mar 18 18:09:31 +0200

M-T fixes

Diffstat:
heightmap.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/heightmap.cc b/heightmap.cc @@ -171,9 +171,9 @@ bool ray_vs_triangle( v3 ray_origin, v3 ray_dir, v3 p0, v3 p1, v3 p2, float * t v3 q = cross( d, e01 ); float v = dot( ray_dir, q ) * inv_det; - if( u < 0 || u + v > 1 ) return false; + if( v < 0 || u + v > 1 ) return false; - *t = dot( e01, q ) * inv_det; + *t = dot( e02, q ) * inv_det; return true; }