Fixed issue 428

This commit is contained in:
codeanticode
2010-11-16 07:45:11 +00:00
parent 7f1a9ade93
commit 6c9b1f4fbc
@@ -2317,6 +2317,8 @@ public class PShape3D extends PShape implements PConstants {
// Loading texture map.
String texname = elements[1];
currentMtl.kdMap = parent.loadImage(texname);
// Texture orientation in Processing is inverted with respecto to OpenGL.
currentMtl.kdMap.getTexture().setFlippedY(true);
} else if (elements[0].equals("Ka") && elements.length > 3) {
// The ambient color of the material
currentMtl.ka.x = Float.valueOf(elements[1]).floatValue();