/// <summary>
 /// Lights: can be access as an array, the collection is a simple array
 /// </summary>
 /// <param name="l"></param>
 public void AddLight(RTLight l)
 {
     l.SetResourceIndex(mAllLights.Count);
     mAllLights.AddResource(l);
 }
 /// <summary>
 /// Lights: can be access as an array, the collection is a simple array
 /// </summary>
 /// <param name="l"></param>
 public void AddLight(RTLight l)
 {
     l.SetResourceIndex(mAllLights.Count);
     mAllLights.AddResource(l);
 }