From d4baac1e6b20af1c37df1c92c79f119a473e383c Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 12 Jun 2011 11:25:34 +0000 Subject: [PATCH] - fix material error git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7596 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/core/scene/processors/WireProcessor.java | 3 ++- .../src/com/jme3/gde/core/scene/processors/wire_color.j3md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java index d137954a7..75a307f5f 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java @@ -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); } diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md b/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md index 0e980a9d0..3d8c88aa6 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md @@ -5,8 +5,8 @@ MaterialDef Wire Color { } Technique { - VertexShader GLSL100: solid_color.vert - FragmentShader GLSL100: solid_color.frag + VertexShader GLSL100: Unshaded.vert + FragmentShader GLSL100: Unshaded.frag RenderState { FaceCull Off