geom/ray: ensure direction is normalised after transform
This commit is contained in:
parent
4dcd10243c
commit
63fb76c24c
@ -50,7 +50,9 @@ util::geom::operator* (util::matrix4f lhs, ray3f rhs)
|
|||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
(lhs * rhs.origin.homog<4> ()).redim<3> (),
|
(lhs * rhs.origin.homog<4> ()).redim<3> (),
|
||||||
(lhs * rhs.direction.homog<4> ()).redim<3> ()
|
normalised (
|
||||||
|
(lhs * rhs.direction.homog<4> ()).redim<3> ()
|
||||||
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user