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:
parent
2bfd91ef2e
commit
ed2a224829
@ -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…
x
Reference in New Issue
Block a user