Pass p = (Pass) passes.get(i);
Pass p = passes.get(i);
    public void renderPasses(Renderer r) {        for (int i = 0, sSize = passes.size(); i < sSize; i++) {            Pass p = (Pass) passes.get(i);            p.renderPass(r);        }    }