Use a gray background for contrast in the model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4149 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -80,6 +80,7 @@ import com.jme.scene.state.MaterialState;
|
|||||||
import com.jme.scene.state.TextureState;
|
import com.jme.scene.state.TextureState;
|
||||||
import com.jme.scene.state.WireframeState;
|
import com.jme.scene.state.WireframeState;
|
||||||
import com.jme.scene.state.ZBufferState;
|
import com.jme.scene.state.ZBufferState;
|
||||||
|
import com.jme.system.JmeException;
|
||||||
import com.jme.util.LoggingSystem;
|
import com.jme.util.LoggingSystem;
|
||||||
import com.jme.util.TextureManager;
|
import com.jme.util.TextureManager;
|
||||||
import com.jme.util.geom.Debugger;
|
import com.jme.util.geom.Debugger;
|
||||||
@@ -277,6 +278,14 @@ public class ModelViewer extends JmeCanvasApp
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override // documentation inherited
|
||||||
|
protected void initDisplay ()
|
||||||
|
throws JmeException
|
||||||
|
{
|
||||||
|
super.initDisplay();
|
||||||
|
_ctx.getRenderer().setBackgroundColor(ColorRGBA.gray);
|
||||||
|
}
|
||||||
|
|
||||||
@Override // documentation inherited
|
@Override // documentation inherited
|
||||||
protected void initInput ()
|
protected void initInput ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user