Fixed sign post material and adjusted ambient lights for the spot lights tests

This commit is contained in:
Nehon 2016-03-14 20:29:58 +01:00
parent 0b487ee9f3
commit 26719e0047
4 changed files with 7 additions and 7 deletions

View File

@ -58,7 +58,7 @@ public class TestSpotLight extends SimpleApplication {
Geometry lightMdl;
public void setupLighting(){
AmbientLight al=new AmbientLight();
al.setColor(ColorRGBA.White.mult(0.8f));
al.setColor(ColorRGBA.White.mult(0.02f));
rootNode.addLight(al);
spot=new SpotLight();

View File

@ -65,7 +65,7 @@ public class TestSpotLightShadows extends SimpleApplication {
public void setupLighting() {
AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(0.3f));
al.setColor(ColorRGBA.White.mult(0.02f));
rootNode.addLight(al);
rootNode.setShadowMode(ShadowMode.CastAndReceive);

View File

@ -95,7 +95,7 @@ public class TestSpotLightTerrain extends SimpleApplication {
rootNode.addLight(sl);
AmbientLight ambLight = new AmbientLight();
ambLight.setColor(new ColorRGBA(0.8f, 0.8f, 0.8f, 0.2f));
ambLight.setColor(ColorRGBA.Black);
rootNode.addLight(ambLight);
cam.setLocation(new Vector3f(-41.219646f, -84.8363f, -171.67267f));

View File

@ -1,11 +1,11 @@
Material Signpost : Common/MatDefs/Light/Lighting.j3md {
MaterialParameters {
Shininess: 4.0
DiffuseMap: Models/Sign Post/Sign Post.jpg
NormalMap: Models/Sign Post/Sign Post_normal.jpg
SpecularMap: Models/Sign Post/Sign Post_specular.jpg
DiffuseMap: "Models/Sign Post/Sign Post.jpg"
NormalMap: "Models/Sign Post/Sign Post_normal.jpg"
SpecularMap: "Models/Sign Post/Sign Post_specular.jpg"
UseMaterialColors : true
Ambient : 0.5 0.5 0.5 1.0
Ambient : 1.0 1.0 1.0 1.0
Diffuse : 1.0 1.0 1.0 1.0
Specular : 1.0 1.0 1.0 1.0
}