* Fixed MTL loader bug when handling Tr/d statement

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 8e5832f975
commit b0aae84707
  1. 2
      engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java

@ -132,7 +132,7 @@ public class MTLLoader implements AssetLoader {
else
color = new ColorRGBA(ColorRGBA.White);
color.a = scan.nextFloat();
color.a = alpha;
material.setColor("Diffuse", color);
material.setTransparent(true);
material.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);

Loading…
Cancel
Save