Fixed lighting (i.e., removed it) on pivot rendering.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4177 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-06-07 18:29:53 +00:00
parent b7ca8f50f4
commit 6c6061c62a
@@ -406,9 +406,15 @@ public class ModelViewer extends JmeCanvasApp
new ColorRGBA[] { ColorRGBA.red, ColorRGBA.red,
ColorRGBA.green, ColorRGBA.green, ColorRGBA.blue,
ColorRGBA.blue }, null);
_axes.setRenderQueueMode(Renderer.QUEUE_SKIP);
_axes.setRenderState(r.createZBufferState());
LightState lstate = r.createLightState();
lstate.setEnabled(false);
_axes.setRenderState(lstate);
_axes.updateRenderState();
}
_axes.getRenderState(ZBufferState.RS_ZBUFFER).apply();
_axes.getRenderState(LightState.RS_LIGHT).apply();
_axes.getWorldTranslation().set(spatial.getWorldTranslation());
_axes.getWorldRotation().set(spatial.getWorldRotation());
_axes.draw(r);