예제 #1
0
// 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);
	}
}
예제 #2
0
bool MD5ModelNode::testLight(const RendererLight& light) const {
	return light.testAABB(worldAABB());
}