OSDN Git Service

- fix material error
authornormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sun, 12 Jun 2011 11:25:34 +0000 (11:25 +0000)
committernormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sun, 12 Jun 2011 11:25:34 +0000 (11:25 +0000)
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7596 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java
sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md

index d137954..75a307f 100644 (file)
@@ -50,7 +50,8 @@ public class WireProcessor implements SceneProcessor {
     Material wireMaterial;
 
     public WireProcessor(AssetManager manager) {
-        wireMaterial = new Material(manager, "/Common/MatDefs/Misc/WireColor.j3md");
+        wireMaterial = new Material(manager, "/Common/MatDefs/Misc/Unshaded.j3md");
+        wireMaterial.getAdditionalRenderState().setWireframe(true);
         wireMaterial.setColor("Color", ColorRGBA.Blue);
     }
 
index 0e980a9..3d8c88a 100644 (file)
@@ -5,8 +5,8 @@ MaterialDef Wire Color {
     }\r
 \r
     Technique {\r
-        VertexShader GLSL100: solid_color.vert\r
-        FragmentShader GLSL100: solid_color.frag\r
+        VertexShader GLSL100: Unshaded.vert\r
+        FragmentShader GLSL100: Unshaded.frag\r
 \r
         RenderState {\r
             FaceCull Off\r