- clean up blender test

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8080 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 3256daecb1
commit 0a18b365ea
  1. 9
      engine/src/test/jme3test/blender/TestBlenderLoader.java

@ -41,11 +41,6 @@ import com.jme3.scene.Spatial;
public class TestBlenderLoader extends SimpleApplication {
float angle;
PointLight pl;
Spatial lightMdl;
String assetName;
public static void main(String[] args){
TestBlenderLoader app = new TestBlenderLoader();
app.start();
@ -55,7 +50,7 @@ public class TestBlenderLoader extends SimpleApplication {
public void simpleInitApp() {
viewPort.setBackgroundColor(ColorRGBA.DarkGray);
Spatial bumpy = (Spatial) assetManager.loadModel("Blender/2.4x/Sinbad.blend");
Spatial bumpy = assetManager.loadModel("Blender/2.4x/Sinbad.blend");
rootNode.attachChild(bumpy);
// sunset light
@ -73,7 +68,7 @@ public class TestBlenderLoader extends SimpleApplication {
// white ambient light
dl = new DirectionalLight();
dl.setDirection(new Vector3f(1, -0.5f,-0.1f).normalizeLocal());
dl.setColor(new ColorRGBA(0.50f, 0.40f, 0.50f, 1.0f));
dl.setColor(new ColorRGBA(0.80f, 0.70f, 0.80f, 1.0f));
rootNode.addLight(dl);
}

Loading…
Cancel
Save