// Local helper inline void Surface_addLight(const MD5Surface& surface, VectorLightList& lights, const Matrix4& localToWorld, const RendererLight& light) { if (light.testAABB(aabb_for_oriented_aabb(surface.localAABB(), localToWorld))) { lights.addLight(light); } }
bool MD5ModelNode::testLight(const RendererLight& light) const { return light.testAABB(worldAABB()); }