am.setDirection(new Vector3f(0, 0, 0));
am.setDirection(new Vector3f(-1, -0.5f, 0));
    protected void initGame() {        Vector3f max = new Vector3f(10,10,10);        Vector3f min = new Vector3f(0,0,0);                t = new Box("Box", min,max);        t.setModelBound(new BoundingSphere());        t.updateModelBound();                Pyramid t2 = new Pyramid("Pyramid", 10,20);        t2.setModelBound(new BoundingSphere());        t2.updateModelBound();                t.setLocalTranslation(new Vector3f(0,0,-10));                t2.setLocalTranslation(new Vector3f(-20,0,0));                scene = new Node("Scene graph node");        scene.attachChild(t);        scene.attachChild(t2);                ZBufferState buf = display.getRenderer().getZBufferState();        buf.setEnabled(true);        buf.setFunction(ZBufferState.CF_LEQUAL);                SpotLight am = new SpotLight();        am.setDiffuse(new ColorRGBA(0.0f, 1.0f, 0.0f, 1.0f));        am.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));        am.setDirection(new Vector3f(0, 0, 0));        am.setLocation(new Vector3f(25, 10, 0));        am.setAngle(15);                SpotLight am2 = new SpotLight();        am2.setDiffuse(new ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f));        am2.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));        am2.setDirection(new Vector3f(0, 0, 0));        am2.setLocation(new Vector3f(-25, 10, 0));        am2.setAngle(15);        DirectionalLight dr = new DirectionalLight();        dr.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f));        dr.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));        //dr.setSpecular(new ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f));        dr.setDirection(new Vector3f(150, 0 , 150));        LightState state = display.getRenderer().getLightState();        state.setEnabled(true);        state.attach(am);        state.attach(dr);        state.attach(am2);        am.setEnabled(true);        am2.setEnabled(true);        dr.setEnabled(true);        scene.setRenderState(state);        scene.setRenderState(buf);        cam.update();                TextureState ts = display.getRenderer().getTextureState();                ts.setEnabled(true);                ts.setTexture(                    TextureManager.loadTexture(                        TestLightState.class.getClassLoader().getResource("jmetest/data/images/Monkey.jpg"),                        Texture.MM_LINEAR,                        Texture.FM_LINEAR,                        true));                                WireframeState ws = display.getRenderer().getWireframeState();        ws.setEnabled(false);        //t2.setRenderState(ws);                                scene.setRenderState(ts);                scene.updateGeometricState(0.0f, true);    }