Bugfix: alpha map cannot be applied to unshaded material.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
@@ -268,7 +268,11 @@ public final class MaterialContext {
|
|||||||
material.setTexture(MaterialHelper.TEXTURE_TYPE_GLOW, texture);
|
material.setTexture(MaterialHelper.TEXTURE_TYPE_GLOW, texture);
|
||||||
break;
|
break;
|
||||||
case MTEX_ALPHA:
|
case MTEX_ALPHA:
|
||||||
|
if(!shadeless) {
|
||||||
material.setTexture(MaterialHelper.TEXTURE_TYPE_ALPHA, texture);
|
material.setTexture(MaterialHelper.TEXTURE_TYPE_ALPHA, texture);
|
||||||
|
} else {
|
||||||
|
LOGGER.warning("JME does not support alpha map on unshaded material. Material name is " + name);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOGGER.severe("Unknown mapping type: " + mapTo);
|
LOGGER.severe("Unknown mapping type: " + mapTo);
|
||||||
|
|||||||
Reference in New Issue
Block a user