Fixed some things

This commit is contained in:
Ziver Koc 2009-03-11 14:15:06 +00:00
parent 7a4d7242c5
commit 14f395d273
8 changed files with 351 additions and 182 deletions

View file

@ -7,7 +7,6 @@ import com.jme.light.DirectionalLight;
import com.jme.light.LightNode;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.renderer.Renderer;
import com.jme.scene.Node;
import com.jme.scene.Skybox;
import com.jme.scene.state.TextureState;
@ -23,7 +22,7 @@ public class Environment extends Node {
* */
private Node localNode;
public Environment(){
public Environment(Node rootNode){
buildLocalNode();
}
@ -51,8 +50,6 @@ public class Environment extends Node {
dr.setDiffuse(ColorRGBA.white);
dr.setAmbient(ColorRGBA.gray);
dr.setDirection(new Vector3f(0.0f, 0.0f, 0.0f));
dr.setShadowCaster(true);
this.setRenderQueueMode(Renderer.QUEUE_OPAQUE);
LightNode lightNode = new LightNode("space_light_node");
lightNode.setLight(dr);