mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Fixed issue 428
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user