}
case "Ka": {
float red = Float.parseFloat(parts[1]);
float green = Float.parseFloat(parts[2]);
float blue = Float.parseFloat(parts[3]);
current.emissive = new Color(red, green, blue);
break;
}
case "Kd": {
float red = Float.parseFloat(parts[1]);
float green = Float.parseFloat(parts[2]);
float blue = Float.parseFloat(parts[3]);
current.diffuse = new Color(red, green, blue);
current.ambient = new Color(red, green, blue);
break;
}
case "Ks": {/*
float red = Float.parseFloat(parts[1]);
float green = Float.parseFloat(parts[2]);