Fog and Bounding Box

I tried two different ways to create “blackout” over my game level; the engine could not handle the simple methods and the fps crashed.

The last best method (without using special shaders), would be to set fog to the scene at a particular point/node (not render), and then change the bounding box of the fog so that the fog covers a certain region of the level only (extending out past the point/node it’s set too).

The only problem is… I can’t make sense of the APIs that are shown in the API documentation on setting the bounding box for fog (there is no working example of how to define the bounding box, argument types and set the new size of the bounding box).