diff --git a/engine/src/test/jme3test/helloworld/HelloMaterial.java b/engine/src/test/jme3test/helloworld/HelloMaterial.java index 8e94ff43c..e930c9178 100644 --- a/engine/src/test/jme3test/helloworld/HelloMaterial.java +++ b/engine/src/test/jme3test/helloworld/HelloMaterial.java @@ -95,6 +95,9 @@ public class HelloMaterial extends SimpleApplication { Material mat_lit = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"); mat_lit.setTexture("DiffuseMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond.jpg")); mat_lit.setTexture("NormalMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond_normal.png")); + mat_lit.setBoolean("UseMaterialColors",true); + mat_lit.setColor("Specular",ColorRGBA.White); + mat_lit.setColor("Diffuse",ColorRGBA.White); mat_lit.setFloat("Shininess", 5f); // [0,128] shiny_rock.setMaterial(mat_lit); shiny_rock.setLocalTranslation(0,2,-2); // Move it a bit diff --git a/engine/test-data/Textures/Terrain/Pond/Pond.j3m b/engine/test-data/Textures/Terrain/Pond/Pond.j3m index a7aa9181e..2e493db92 100644 --- a/engine/test-data/Textures/Terrain/Pond/Pond.j3m +++ b/engine/test-data/Textures/Terrain/Pond/Pond.j3m @@ -1,7 +1,12 @@ -Material Pong Rock : Common/MatDefs/Light/Lighting.j3md { - MaterialParameters { - Shininess: 8.0 - DiffuseMap: Repeat Textures/Terrain/Pond/Pond.jpg - NormalMap: Repeat Textures/Terrain/Pond/Pond_normal.png - } -} \ No newline at end of file +Material Pong Rock : Common/MatDefs/Light/Lighting.j3md { + MaterialParameters { + Shininess: 8.0 + DiffuseMap: Repeat Textures/Terrain/Pond/Pond.jpg + NormalMap: Repeat Textures/Terrain/Pond/Pond_normal.png + Diffuse : 0.8 0.8 0.8 1.0 + UseMaterialColors : true + Specular : 1.0 1.0 1.0 1.0 + } + AdditionalRenderState { + } +} diff --git a/engine/test-data/Textures/Terrain/Pond/Pond_normal.png b/engine/test-data/Textures/Terrain/Pond/Pond_normal.png index 6f5f7095d..8e566ed4d 100644 Binary files a/engine/test-data/Textures/Terrain/Pond/Pond_normal.png and b/engine/test-data/Textures/Terrain/Pond/Pond_normal.png differ