+AABB Doom3Light_getBounds(const AABB& workzone)
+{
+ AABB aabb(workzone);
+
+ if(aabb.extents[0] == 0)
+ {
+ aabb.extents[0] = Doom3Light_defaultRadius;
+ }
+ if(aabb.extents[1] == 0)
+ {
+ aabb.extents[1] = Doom3Light_defaultRadius;
+ }
+ if(aabb.extents[2] == 0)
+ {
+ aabb.extents[2] = Doom3Light_defaultRadius;
+ }
+
+ if(aabb_valid(aabb))
+ {
+ return aabb;
+ }
+ return AABB(Vector3(0, 0, 0), Vector3(64, 64, 64));
+}