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

cleanup_build_scripts
Nehon 9 years ago
parent 0b487ee9f3
commit 26719e0047
  1. 2
      jme3-examples/src/main/java/jme3test/light/TestSpotLight.java
  2. 2
      jme3-examples/src/main/java/jme3test/light/TestSpotLightShadows.java
  3. 2
      jme3-examples/src/main/java/jme3test/light/TestSpotLightTerrain.java
  4. 8
      jme3-testdata/src/main/resources/Models/Sign Post/Sign Post.j3m

@ -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();

@ -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);

@ -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));

@ -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
}

Loading…
Cancel
Save