public static void initialize(GL2 gl, int numLights){
        int[] maxLights = new int[1];

        // Make Sure lighting is turned on
        gl.glEnable(GL2.GL_LIGHTING);

        // Check to make sure we aren't enable more lights than the graphics card can support
        gl.glGetIntegerv(GL2.GL_MAX_LIGHTS, maxLights, 0);

        // Make sure we don't enable more lights than the graphics card can handle.
        if(numLights > maxLights[0]){
            System.err.println("Unable to support " + numLights + " lights. Truncating to " + maxLights[0]);
            numLights = maxLights[0];
        }

        for(int i = 0; i < numLights; i++){
            Light.add(Light.newRandom(Skybox.SKYBOX_SIZE));
            gl.glEnable(GL2.GL_LIGHT0 + i);
        }
    }