private RenderLightCollectionGroup GetLightGroup(RenderViewLightData renderViewData, RenderLight light)
        {
            RenderLightCollectionGroup lightGroup;

            var directLight = light.Type as IDirectLight;
            var lightGroups = renderViewData.ActiveLightGroups;

            var type = light.Type.GetType();

            if (!lightGroups.TryGetValue(type, out lightGroup))
            {
                lightGroup = new RenderLightCollectionGroup(type);
                lightGroups.Add(type, lightGroup);
            }
            return(lightGroup);
        }
 public ActiveLightGroupRenderer(RenderLightCollectionGroup lightGroup, IEnumerable <LightGroupRendererBase> lightGroupRenderers)
 {
     LightGroup = lightGroup;
     Renderers  = lightGroupRenderers.ToArray();
 }