public UWB_XNADirectionalLight CreateDirectionalLight()
 {
     if (numLights < MAX_LIGHTS)
     {
         UWB_XNADirectionalLight tempLight = new UWB_XNADirectionalLight(m_LightingEffect.Parameters["lights"].Elements[numLights]);
         IncrementLightCount();
         return tempLight;
     }
     else
     {
         UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached.");
         return null;
     }
 }
 public UWB_XNADirectionalLight CreateDirectionalLight()
 {
     if (numLights < MAX_LIGHTS)
     {
         UWB_XNADirectionalLight tempLight = new UWB_XNADirectionalLight(m_LightingEffect.Parameters["lights"].Elements[numLights]);
         IncrementLightCount();
         return(tempLight);
     }
     else
     {
         UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached.");
         return(null);
     }
 }