From ed2a22482953cc84bdf60ff2ef2cda804027f10e Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Fri, 14 Sep 2012 11:29:16 +0000 Subject: [PATCH] Bugfix: alpha map cannot be applied to unshaded material. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../scene/plugins/blender/materials/MaterialContext.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java b/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java index 8e8aeea7d..e9745a9ce 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java @@ -268,7 +268,11 @@ public final class MaterialContext { material.setTexture(MaterialHelper.TEXTURE_TYPE_GLOW, texture); break; case MTEX_ALPHA: - material.setTexture(MaterialHelper.TEXTURE_TYPE_ALPHA, texture); + if(!shadeless) { + material.setTexture(MaterialHelper.TEXTURE_TYPE_ALPHA, texture); + } else { + LOGGER.warning("JME does not support alpha map on unshaded material. Material name is " + name); + } break; default: LOGGER.severe("Unknown mapping type: " + mapTo);