light.move(0f, 3f, 0f);
loadModel("chamfer_box.obj").setDefaultMaterial(loadMaterial("box_normal.mat"));
loadModel("plane.obj").setDefaultMaterial(loadMaterial("plane.mat"));
Material cubebox = loadMaterial("box_cubemap.mat");
box = new Entity();
box.setModel(loadModel("chamfer_box.obj"));
box.setMaterial(cubebox);
box.setPos(0,3,0);
box.setScale(3f);
stars = new Vector<>();
starPoints = new Vector<>();
float sinx,cosz,rany,seed,rot;
for(int x=0; x<100; x++){
// stars.add(new Entity());
// stars.lastElement().setModel(loadModel("1x1plane.obj"));
rany = (float)(Math.random()*100);
seed = (float)(Math.random()*2*3.141);
//rot = (float)(360f*(seed/(2*3.141)));
sinx = (float)Math.sin(seed)*200*((100-rany)/100);
cosz = (float)Math.cos(seed)*200*((100-rany)/100);
starPoints.add(new Vec3f(sinx, rany+110, cosz));
// stars.lastElement().setPos(sinx, rany+100, cosz);
// stars.lastElement().setRot(0, rot/2, 0);
}
skybox = new Entity();
skybox.setScale(3000f);
skybox.setModel(loadModel("skybox.obj"));
target = new Entity();
target.setModel(loadModel("drake.obj"));
//target.setMaterial(tilebox);
target.setScale(5f);
target.setPos(0,0f,0);
floor = new Entity();
floor.setModel(loadModel("plane.obj"));
floor.setScale(10f);
float seekerFovs[] = {30,60,90};