package jme3test.android;

import com.jme3.app.SimpleApplication;
import com.jme3.light.AmbientLight;
import com.jme3.light.PointLight;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Sphere;
import com.jme3.util.TangentBinormalGenerator;

/**
 * Created by potterec on 4/29/2016.
 */
public class TestAndroidResources extends SimpleApplication {

    @Override
    public void simpleInitApp() {
        // Create boxes with textures that are stored in the Android Resources Folders
        // Images are stored in multiple Drawable and Mipmap directories.  Android picks the ones that
        // match the device size and density.
        Box box1Mesh = new Box(1, 1, 1);
        Geometry box1 = new Geometry("Monkey Box 1", box1Mesh);
        Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat1.setTexture("ColorMap", assetManager.loadTexture("drawable_monkey.png"));
        box1.setMaterial(mat1);
        box1.setLocalTranslation(-2, 0, 0);
        rootNode.attachChild(box1);

        Box box2Mesh = new Box(1, 1, 1);
        Geometry box2 = new Geometry("Monkey Box 2", box2Mesh);
        Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat2.setTexture("ColorMap", assetManager.loadTexture("mipmap_monkey.png"));
        box2.setMaterial(mat2);
        box2.setLocalTranslation(2, 0, 0);
        rootNode.attachChild(box2);

        PointLight pl = new PointLight();
        pl.setColor(ColorRGBA.White);
        pl.setPosition(new Vector3f(4f, 0f, 0f));
        rootNode.addLight(pl);

        AmbientLight al = new AmbientLight();
        al.setColor(ColorRGBA.White);
        rootNode.addLight(al);
    }
}

@@ -1555,285 +1555,8 @@
 );%0A%0A
-        PointLight pl = new PointLight();%0A        pl.setColor(ColorRGBA.White);%0A        pl.setPosition(new Vector3f(4f, 0f, 0f));%0A        rootNode.addLight(pl);%0A%0A        AmbientLight al = new AmbientLight();%0A        al.setColor(ColorRGBA.White);%0A        rootNode.addLight(al);%0A
     

Remove unused lights