added back the light in testenvmap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10510 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
4d16f05f23
commit
33ad135b28
@ -3,6 +3,7 @@ package jme3test.light;
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.asset.TextureKey;
|
||||
import com.jme3.input.ChaseCamera;
|
||||
import com.jme3.light.DirectionalLight;
|
||||
import com.jme3.material.Material;
|
||||
import com.jme3.math.Vector3f;
|
||||
import com.jme3.post.FilterPostProcessor;
|
||||
@ -56,6 +57,10 @@ public class TestEnvironmentMapping extends SimpleApplication {
|
||||
|
||||
fpp.addFilter(bf);
|
||||
|
||||
DirectionalLight l = new DirectionalLight();
|
||||
l.setDirection(new Vector3f(0, -1, -1));
|
||||
rootNode.addLight(l);
|
||||
|
||||
viewPort.addProcessor(fpp);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user