|
|
|
@ -630,7 +630,7 @@ public class GltfLoader implements AssetLoader { |
|
|
|
|
|
|
|
|
|
JsonObject camObj = cameras.get(i).getAsJsonObject(); |
|
|
|
|
String type = getAsString(camObj, "type"); |
|
|
|
|
assertNotNull(type, "No type defined ofr camera"); |
|
|
|
|
assertNotNull(type, "No type defined for camera"); |
|
|
|
|
JsonObject camData = camObj.getAsJsonObject(type); |
|
|
|
|
if (type.equals("perspective")) { |
|
|
|
|
float aspectRatio = getAsFloat(camData, "aspectRation", 1f); |
|
|
|
@ -673,7 +673,7 @@ public class GltfLoader implements AssetLoader { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
Integer textureIndex = getAsInteger(texture, "index"); |
|
|
|
|
assertNotNull(textureIndex, "Texture as no index"); |
|
|
|
|
assertNotNull(textureIndex, "Texture has no index"); |
|
|
|
|
assertNotNull(textures, "There are no textures, yet one is referenced by a material"); |
|
|
|
|
|
|
|
|
|
JsonObject textureData = textures.get(textureIndex).getAsJsonObject(); |
|
|
|
|