X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fchunk.cpp;h=514431cbdd636209368d86127cf812d5facfcad7;hb=addf4eb6485a36d40096d87196ed786e6e16ab6d;hp=a485bfbb7d37c61eab4f80c091f1b78659c29b01;hpb=b35ce3a6423c554b34b37362c5550bd705e63a1d;p=blank.git diff --git a/src/chunk.cpp b/src/chunk.cpp index a485bfb..514431c 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -43,8 +43,7 @@ bool Chunk::Intersection( float *dist, glm::vec3 *normal) const { { // rough check - const AABB bb{{0, 0, 0}, {Width(), Height(), Depth()}}; - if (!blank::Intersection(ray, bb, M)) { + if (!blank::Intersection(ray, Bounds(), M)) { return false; } }