adding textures (to texture branch, split due to errors)

This commit is contained in:
2020-05-10 12:56:21 -04:00
parent d2b8e7015a
commit 4ea7ec4b21
11 changed files with 104 additions and 24 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
package org.hl.engine.graphics;
import org.hl.engine.math.Vector3f;
import org.hl.engine.math.lalg.*;
public class Vertex {
@@ -8,8 +8,9 @@ public class Vertex {
private Vector3f position;
private Vector3f color;
private Vector2f textureCoords;
public Vertex (Vector3f position, Vector3f color) {
public Vertex (Vector3f position, Vector3f color, Vector2f texture) {
this.position = position;
this.color = color;
}
@@ -21,4 +22,8 @@ public class Vertex {
public Vector3f getColor() {
return color;
}
public Vector2f getTextureCoords() {
return textureCoords;
}
}