3D models

This commit is contained in:
2020-05-29 19:34:51 -04:00
parent 3192682853
commit 68720e1d1f
9 changed files with 200103 additions and 32 deletions
+12 -1
View File
@@ -8,7 +8,7 @@ public class Vertex {
// Just a vertex
private Vector3f position;
private Vector3f position, normal;
private Vector3f color;
private Vector2f textureCoords;
private boolean type;
@@ -19,6 +19,13 @@ public class Vertex {
this.color = new Vector3f(1, 1, 1);
}
public Vertex(Vector3f position, Vector2f textureCoords, Vector3f normal) {
this.position = position;
this.textureCoords = textureCoords;
this.normal = normal;
this.color = new Vector3f(1, 1, 1);
}
public Vertex(Vector3f position, Vector3f color) {
this.position = position;
this.color = color;
@@ -47,4 +54,8 @@ public class Vertex {
public boolean isType() {
return type;
}
public Vector3f getNormal() {
return normal;
}
}