private LightComponentCollectionGroup GetLightGroup(RenderViewLightData renderViewData, LightComponent light)
        {
            LightComponentCollectionGroup lightGroup;

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

            var type = light.Type.GetType();

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