3D models
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user