The current rendering environment is no longer directly accessible, LightMap now has a constant for the engine's light cap.