TextureRenderer & LightState

Hi,



I'm currently playing around with the TextureRenderer. This works as expected:



public class Test extends SimpleGame
{
   private Texture fakeTex;
   private TextureRenderer tRenderer;
   private Node fakeScene;
   
   @Override
   protected void simpleInitGame()
   {
      cam.setLocation(new Vector3f());
      cam.lookAt(new Vector3f(0,0,1), new Vector3f(0,1,0));
      
      lightState.detachAll();
      
      PointLight p = new PointLight();
      p.setAmbient(ColorRGBA.lightGray);
      p.setDiffuse(ColorRGBA.lightGray);
      p.setSpecular(ColorRGBA.white);
      p.setLocation(new Vector3f(0,100,0));
      p.setEnabled(true);
      
      lightState.attach(p);
      
      final Box dummy = new Box("dummy", new Vector3f(), 10,10,10);
      dummy.addController(new Controller()
      {
         @Override
         public void update(float time)
         {
            dummy.getLocalRotation().multLocal(new Quaternion().fromAngleAxis(
               FastMath.DEG_TO_RAD * 10f * time, new Vector3f(0,1,0)));
         }         
      });
      
      Node translation = new Node("dummy-translation");
      translation.attachChild(dummy);
      translation.setLocalTranslation(new Vector3f(0,0,40));
      
      rootNode.attachChild(translation);
      
      fakeScene = new Node("fakeScene");
      fakeScene.setRenderQueueMode(Renderer.QUEUE_SKIP);
      
       // Setup our params for the depth buffer
   

PointLight pl = new PointLight();
p.setAmbient(ColorRGBA.gray);


Copy-paste error I assume :)

you're right, how embarrassing…://



thank you very much for the quick help