|
|
@ -339,8 +339,8 @@ public class GeometryBatchFactory { |
|
|
|
if (diffuse != null && diffuse.getKey() != null) { |
|
|
|
if (diffuse != null && diffuse.getKey() != null) { |
|
|
|
String keyName = diffuse.getKey().getName(); |
|
|
|
String keyName = diffuse.getKey().getName(); |
|
|
|
if (!atlas.addTexture(diffuse, "DiffuseMap")) { |
|
|
|
if (!atlas.addTexture(diffuse, "DiffuseMap")) { |
|
|
|
logger.log(Level.WARNING, "Adding diffuse texture {0} to atlas failed, atlas full?", keyName); |
|
|
|
throw new IllegalStateException("Adding diffuse texture" + keyName + "to atlas failed, atlas full."); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (normal != null && normal.getKey() != null) { |
|
|
|
if (normal != null && normal.getKey() != null) { |
|
|
|
atlas.addTexture(diffuse, "NormalMap", keyName); |
|
|
|
atlas.addTexture(diffuse, "NormalMap", keyName); |
|
|
|
} |
|
|
|
} |
|
|
@ -349,6 +349,7 @@ public class GeometryBatchFactory { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Geometry geom = new Geometry(); |
|
|
|
Geometry geom = new Geometry(); |
|
|
|
Mesh mesh = new Mesh(); |
|
|
|
Mesh mesh = new Mesh(); |
|
|
|
mergeGeometries(geometries, mesh, atlas); |
|
|
|
mergeGeometries(geometries, mesh, atlas); |
|
|
|