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:
@@ -406,9 +406,15 @@ public class ModelViewer extends JmeCanvasApp
|
|||||||
new ColorRGBA[] { ColorRGBA.red, ColorRGBA.red,
|
new ColorRGBA[] { ColorRGBA.red, ColorRGBA.red,
|
||||||
ColorRGBA.green, ColorRGBA.green, ColorRGBA.blue,
|
ColorRGBA.green, ColorRGBA.green, ColorRGBA.blue,
|
||||||
ColorRGBA.blue }, null);
|
ColorRGBA.blue }, null);
|
||||||
|
_axes.setRenderQueueMode(Renderer.QUEUE_SKIP);
|
||||||
_axes.setRenderState(r.createZBufferState());
|
_axes.setRenderState(r.createZBufferState());
|
||||||
|
LightState lstate = r.createLightState();
|
||||||
|
lstate.setEnabled(false);
|
||||||
|
_axes.setRenderState(lstate);
|
||||||
|
_axes.updateRenderState();
|
||||||
}
|
}
|
||||||
_axes.getRenderState(ZBufferState.RS_ZBUFFER).apply();
|
_axes.getRenderState(ZBufferState.RS_ZBUFFER).apply();
|
||||||
|
_axes.getRenderState(LightState.RS_LIGHT).apply();
|
||||||
_axes.getWorldTranslation().set(spatial.getWorldTranslation());
|
_axes.getWorldTranslation().set(spatial.getWorldTranslation());
|
||||||
_axes.getWorldRotation().set(spatial.getWorldRotation());
|
_axes.getWorldRotation().set(spatial.getWorldRotation());
|
||||||
_axes.draw(r);
|
_axes.draw(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user