Spatial s = (Spatial)spatials.get(i);
Spatial s = spatials.get(i);
    public void doRender(Renderer r) {        for (int i = 0, sSize = spatials.size(); i < sSize; i++) {            Spatial s = (Spatial)spatials.get(i);            maskLightStates(s);            s.onDraw(r);        }        r.renderQueue();        unmaskLightStates();        lightStates.clear();    }