X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry%2Fprimitive.hpp;h=cdeae86e5c68b21303b7c27c775d9ff657df8924;hb=f5de855fbd4bf5b0df1cad950cbe9069e41369ca;hp=7da1096b38ddd528546748d232289a7e30fefa3a;hpb=ee920127d653b8a3cfbee1efefde909ffa177662;p=blank.git diff --git a/src/geometry/primitive.hpp b/src/geometry/primitive.hpp index 7da1096..cdeae86 100644 --- a/src/geometry/primitive.hpp +++ b/src/geometry/primitive.hpp @@ -40,6 +40,8 @@ bool Intersection( float *dist = nullptr, glm::vec3 *normal = nullptr) noexcept; +/// matrices may translate and rotate, but must not scale/shear/etc +/// (basically the first three columns must have unit length) bool Intersection( const AABB &a_box, const glm::mat4 &a_m,