t.copyTextureCoords(0, 0, 1);
  protected void simpleInitGame() {    rotQuat = new Quaternion();    axis = new Vector3f(1, 1, 0.5f);    display.setTitle("Multitexturing - Multiple Passes");    cam.setLocation(new Vector3f(0, 0, 40));    cam.update();    Vector3f max = new Vector3f(5, 5, 5);    Vector3f min = new Vector3f( -5, -5, -5);    t = new Box("Box", min, max);    t.setLocalTranslation(new Vector3f(0, 0, 0));    t.setModelBound(new BoundingSphere());    t.updateModelBound();    t.copyTextureCoords(0, 1, 1);    t.copyTextureCoords(0, 2, 2);    t.copyTextureCoords(0, 3, 3);    t.copyTextureCoords(0, 4, 4);    t.copyTextureCoords(0, 5, 5);    t.copyTextureCoords(0, 6, 6);    t.copyTextureCoords(0, 7, 7);        //attach to rootNode to get updates supplied by SimplePassGame    rootNode.attachChild(t);    TextureState ts1 = display.getRenderer().createTextureState();    Texture t1 = TextureManager.loadTexture(                TestMultitexturePass.class.getClassLoader().getResource(                        "jmetest/data/texture/dirt.jpg"), Texture.MM_LINEAR,                Texture.FM_LINEAR);    ts1.setTexture(t1);    TextureState ts2 = display.getRenderer().createTextureState();    Texture t2 = TextureManager.loadTexture(            TestMultitexturePass.class.getClassLoader().getResource(                    "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR,            Texture.FM_LINEAR);    t2.setWrap(Texture.WM_WRAP_S_WRAP_T);    ts2.setTexture(t2);    ts2.setTextureCoordinateOffset(1);        AlphaState as = display.getRenderer().createAlphaState();    as.setBlendEnabled(true);    as.setSrcFunction(AlphaState.SB_DST_COLOR);    as.setDstFunction(AlphaState.DB_SRC_COLOR);    RenderPass rp1 = new RenderPass();    rp1.setPassState(ts1);    rp1.add(t);        RenderPass rp2 = new RenderPass();    rp2.setPassState(ts2);    rp2.setPassState(as);    rp2.setZFactor(0f);    rp2.setZOffset(-5f);    rp2.add(t);        RenderPass rp3 = new RenderPass();    rp3.add(fpsNode);        pManager.add(rp1);    pManager.add(rp2);    pManager.add(rp3);  }