|
@@ -79,7 +79,7 @@ public class MaterialLoader implements AssetLoader {
|
|
|
scan.useDelimiter("\\p{javaWhitespace}+");
|
|
scan.useDelimiter("\\p{javaWhitespace}+");
|
|
|
return str.trim();
|
|
return str.trim();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
private ColorRGBA readColor(){
|
|
private ColorRGBA readColor(){
|
|
|
ColorRGBA color = new ColorRGBA();
|
|
ColorRGBA color = new ColorRGBA();
|
|
|
color.r = scan.nextFloat();
|
|
color.r = scan.nextFloat();
|
|
@@ -249,6 +249,10 @@ public class MaterialLoader implements AssetLoader {
|
|
|
}else if (keyword.equals("texture_unit")){
|
|
}else if (keyword.equals("texture_unit")){
|
|
|
readTextureUnit();
|
|
readTextureUnit();
|
|
|
}else if (keyword.equals("scene_blend")){
|
|
}else if (keyword.equals("scene_blend")){
|
|
|
|
|
+ if (scan.hasNextInt()){
|
|
|
|
|
+ readString("\n"); // blender2ogre workaround
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
String mode = scan.next();
|
|
String mode = scan.next();
|
|
|
if (mode.equals("alpha_blend")){
|
|
if (mode.equals("alpha_blend")){
|
|
|
blend = true;
|
|
blend = true;
|