renderNode.updateRenderState(); renderNode.onDraw(r); }
for (int i = occluderMeshes.size(); --i >= 0; ) { Object key = occluderMeshes.get(i); MeshShadows ms = (MeshShadows)meshes.get(key); ArrayList volumes = ms.getVolumes(); for (int v = 0, vSize = volumes.size(); v < vSize; v++) { ShadowVolume vol = (ShadowVolume) volumes.get(v); renderNode.attachChild(vol); vol.setDefaultColor(ColorRGBA.green); } }  renderNode.updateRenderState(); renderNode.updateGeometricState(0, true); renderNode.onDraw(r); }
    protected void drawVolumes(Renderer r) {                Node renderNode = new Node("renderVolume");        renderNode.setRenderState(noCull);        renderNode.setRenderState(zbufferWriteLE);        renderNode.setRenderState(colorEnabled);        renderNode.setRenderState(blended);        renderNode.setRenderState(noStencil);        renderNode.setRenderState(highlightMaterial);        renderNode.setRenderState(r.createWireframeState());        for (int i = occluderMeshes.size(); --i >= 0; ) {            Object key = occluderMeshes.get(i);            MeshShadows ms = (MeshShadows)meshes.get(key);            ArrayList volumes = ms.getVolumes();            for (int v = 0, vSize = volumes.size(); v < vSize; v++) {                ShadowVolume vol = (ShadowVolume) volumes.get(v);                renderNode.attachChild(vol);                vol.setDefaultColor(ColorRGBA.green);            }        }        renderNode.updateRenderState();        renderNode.onDraw(r);    }