瀏覽代碼

- remove deprecated material data from BasicGame template Main.java

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7172 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 年之前
父節點
當前提交
9ef10e5ac7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sdk/BasicGameTemplate/src/mygame/Main.java

+ 2 - 2
sdk/BasicGameTemplate/src/mygame/Main.java

@@ -25,8 +25,8 @@ public class Main extends SimpleApplication {
         Geometry geom = new Geometry("Box", b);
         Geometry geom = new Geometry("Box", b);
         geom.updateModelBound();
         geom.updateModelBound();
 
 
-        Material mat = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md");
-        mat.setColor("m_Color", ColorRGBA.Blue);
+        Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
+        mat.setColor("Color", ColorRGBA.Blue);
         geom.setMaterial(mat);
         geom.setMaterial(mat);
 
 
         rootNode.attachChild(geom);
         rootNode.attachChild(geom);