meshes and colors

This commit is contained in:
2020-05-29 15:32:24 -04:00
parent 8d8a90f29a
commit 3192682853
19 changed files with 492 additions and 54 deletions
+17 -8
View File
@@ -11,17 +11,23 @@ public class Vertex {
private Vector3f position;
private Vector3f color;
private Vector2f textureCoords;
public Vertex (Vector3f position, Vector3f color, Vector2f textureCoords) {
this.position = position;
this.color = color;
this.textureCoords = textureCoords;
}
private boolean type;
public Vertex(Vector3f position, Vector2f textureCoords) {
this.position = position;
this.color = new Vector3f(1.0F, 1.0F, 1.0F);
this.textureCoords = textureCoords;
this.color = new Vector3f(1, 1, 1);
}
public Vertex(Vector3f position, Vector3f color) {
this.position = position;
this.color = color;
this.textureCoords = new Vector2f(0, 0);
}
public Vertex(Vector3f position, Vector3f color, Vector2f textureCoords) {
this.position = position;
this.color = color;
this.textureCoords = textureCoords;
}
@@ -38,4 +44,7 @@ public class Vertex {
return textureCoords;
}
public boolean isType() {
return type;
}
}