visitMaterial();
currentMaterialName = name;
}
private Painter getPainter(String name) throws IOException {
Spectrum color = getColor(name);
if (maps.containsKey(name)) {
File file = new File(directory, maps.get(name));
return new ProductPainter(color, new Texture2Painter(new RasterTexture2(file)));
}
return new UniformPainter(color);