|
@@ -34,10 +34,10 @@ public class GDModel implements Renderable {
|
|
|
VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal,
|
|
|
new Material(
|
|
|
ColorAttribute.createDiffuse(
|
|
|
- face.color.getRed(),
|
|
|
- face.color.getGreen(),
|
|
|
- face.color.getBlue(),
|
|
|
- face.color.getAlpha()
|
|
|
+ (float) face.color.getRed() / 255,
|
|
|
+ (float) face.color.getGreen() / 255,
|
|
|
+ (float) face.color.getBlue() / 255,
|
|
|
+ 1
|
|
|
)
|
|
|
)
|
|
|
);
|
|
@@ -51,15 +51,7 @@ public class GDModel implements Renderable {
|
|
|
);
|
|
|
|
|
|
} else {
|
|
|
- meshBuilder.setColor(face.color.getRed(), face.color.getGreen(), face.color.getBlue(), face.color.getAlpha());
|
|
|
- meshBuilder.triangle(
|
|
|
- new Vector3(face.points.get(0).x, face.points.get(0).y, face.points.get(0).z),
|
|
|
- Color.BLACK,
|
|
|
- new Vector3(face.points.get(1).x, face.points.get(1).y, face.points.get(1).z),
|
|
|
- Color.BLACK,
|
|
|
- new Vector3(face.points.get(2).x, face.points.get(2).y, face.points.get(2).z),
|
|
|
- Color.BLACK
|
|
|
- );
|
|
|
+ throw new RuntimeException("Triangles are not yet supported !");
|
|
|
}
|
|
|
}
|
|
|
return builder.end();
|