|
|
|
@ -374,7 +374,7 @@ public class Material implements Asset, Cloneable, Savable, Comparable<Material> |
|
|
|
|
|
|
|
|
|
if (type != null && paramDef.getVarType() != type) { |
|
|
|
|
logger.log(Level.WARNING, "Material parameter being set: {0} with " |
|
|
|
|
+ "type {1} doesn't match definition type {2}", new Object[]{name, type.name(), paramDef.getVarType()} ); |
|
|
|
|
+ "type {1} doesn''t match definition types {2}", new Object[]{name, type.name(), paramDef.getVarType()} ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return newName; |
|
|
|
@ -439,7 +439,7 @@ public class Material implements Asset, Cloneable, Savable, Comparable<Material> |
|
|
|
|
|
|
|
|
|
MatParamTexture val = getTextureParam(name); |
|
|
|
|
if (val == null) { |
|
|
|
|
throw new IllegalArgumentException("The given texture parameter is not set."); |
|
|
|
|
throw new IllegalArgumentException("The given texture for parameter \"" + name + "\" is null."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int texUnit = val.getUnit(); |
|
|
|
|