public void add(Light l) {
        if (listSize == list.length) {
            doubleSize();
        }
        list[listSize] = l;
        distToOwner[listSize++] = Float.NEGATIVE_INFINITY;
    }
Adds a light to the list. List size is doubled if there is no room.

@param l
           The light to add.
jme3-core/src/main/java/com/jme3/light/LightList.java