private void CastRays(GameTime gameTime) { gameTime.StartEvent("Ray Tracing"); var rays = new List <Ray>(); foreach (IRayEmitter rayEmitter in _rayEmitters) { rays.AddRange(rayEmitter.CastRays()); } _rayTracer.Cast(rays); gameTime.EndEvent("Ray Tracing"); }