Fixed sign post material and adjusted ambient lights for the spot lights tests
This commit is contained in:
parent
0b487ee9f3
commit
26719e0047
@ -58,7 +58,7 @@ public class TestSpotLight extends SimpleApplication {
|
|||||||
Geometry lightMdl;
|
Geometry lightMdl;
|
||||||
public void setupLighting(){
|
public void setupLighting(){
|
||||||
AmbientLight al=new AmbientLight();
|
AmbientLight al=new AmbientLight();
|
||||||
al.setColor(ColorRGBA.White.mult(0.8f));
|
al.setColor(ColorRGBA.White.mult(0.02f));
|
||||||
rootNode.addLight(al);
|
rootNode.addLight(al);
|
||||||
|
|
||||||
spot=new SpotLight();
|
spot=new SpotLight();
|
||||||
|
@ -65,7 +65,7 @@ public class TestSpotLightShadows extends SimpleApplication {
|
|||||||
|
|
||||||
public void setupLighting() {
|
public void setupLighting() {
|
||||||
AmbientLight al = new AmbientLight();
|
AmbientLight al = new AmbientLight();
|
||||||
al.setColor(ColorRGBA.White.mult(0.3f));
|
al.setColor(ColorRGBA.White.mult(0.02f));
|
||||||
rootNode.addLight(al);
|
rootNode.addLight(al);
|
||||||
|
|
||||||
rootNode.setShadowMode(ShadowMode.CastAndReceive);
|
rootNode.setShadowMode(ShadowMode.CastAndReceive);
|
||||||
|
@ -95,7 +95,7 @@ public class TestSpotLightTerrain extends SimpleApplication {
|
|||||||
rootNode.addLight(sl);
|
rootNode.addLight(sl);
|
||||||
|
|
||||||
AmbientLight ambLight = new AmbientLight();
|
AmbientLight ambLight = new AmbientLight();
|
||||||
ambLight.setColor(new ColorRGBA(0.8f, 0.8f, 0.8f, 0.2f));
|
ambLight.setColor(ColorRGBA.Black);
|
||||||
rootNode.addLight(ambLight);
|
rootNode.addLight(ambLight);
|
||||||
|
|
||||||
cam.setLocation(new Vector3f(-41.219646f, -84.8363f, -171.67267f));
|
cam.setLocation(new Vector3f(-41.219646f, -84.8363f, -171.67267f));
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
Material Signpost : Common/MatDefs/Light/Lighting.j3md {
|
Material Signpost : Common/MatDefs/Light/Lighting.j3md {
|
||||||
MaterialParameters {
|
MaterialParameters {
|
||||||
Shininess: 4.0
|
Shininess: 4.0
|
||||||
DiffuseMap: Models/Sign Post/Sign Post.jpg
|
DiffuseMap: "Models/Sign Post/Sign Post.jpg"
|
||||||
NormalMap: Models/Sign Post/Sign Post_normal.jpg
|
NormalMap: "Models/Sign Post/Sign Post_normal.jpg"
|
||||||
SpecularMap: Models/Sign Post/Sign Post_specular.jpg
|
SpecularMap: "Models/Sign Post/Sign Post_specular.jpg"
|
||||||
UseMaterialColors : true
|
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
|
Diffuse : 1.0 1.0 1.0 1.0
|
||||||
Specular : 1.0 1.0 1.0 1.0
|
Specular : 1.0 1.0 1.0 1.0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user