Bugfix: alpha map cannot be applied to unshaded material.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 13 years ago
parent 2bfd91ef2e
commit ed2a224829
  1. 4
      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:
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);

Loading…
Cancel
Save