geom/sphere: add glancing ray test
This commit is contained in:
parent
87d442772c
commit
1889a76e26
@ -35,6 +35,12 @@ test_intersect (util::TAP::logger &tap)
|
|||||||
{ util::point3f {0}, 1 },
|
{ util::point3f {0}, 1 },
|
||||||
{ util::point3f {0,2,0}, util::vector3f {0,1,0} },
|
{ util::point3f {0,2,0}, util::vector3f {0,1,0} },
|
||||||
"offset ray never intersects unit-origin sphere"
|
"offset ray never intersects unit-origin sphere"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
1.f,
|
||||||
|
{ util::point3f {1,1,1}, 1 },
|
||||||
|
{ util::point3f {2,2,1}, util::vector3f{-1,0,0} },
|
||||||
|
"glancing ray at unit distance"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user