Fixed some things
This commit is contained in:
parent
7a4d7242c5
commit
14f395d273
8 changed files with 351 additions and 182 deletions
5
src/sg/env/Environment.java
vendored
5
src/sg/env/Environment.java
vendored
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue