- fix material error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7596 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent b8d1073014
commit d4baac1e6b
  1. 3
      sdk/jme3-core/src/com/jme3/gde/core/scene/processors/WireProcessor.java
  2. 4
      sdk/jme3-core/src/com/jme3/gde/core/scene/processors/wire_color.j3md

@ -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);
}

@ -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

Loading…
Cancel
Save