Revert "comment"

This reverts commit b2dbf16329.

Moving back to before textures (without errors)
This commit is contained in:
EvilMuffinHa 2020-05-10 10:51:07 -04:00
parent b2dbf16329
commit 56c316fc49

View File

@ -103,16 +103,13 @@ public class Mesh {
colorBufferObject = storeData(colorBuffer, 1, 3);
// Putting texture into the buffer so renderer and shader can read it
FloatBuffer textureBuffer = MemoryUtil.memAllocFloat(vertices.length * 2);
float[] textureData = new float[vertices.length * 3];
for (int i = 0; i < vertices.length; i ++ ) {
textureData[i * 2] = vertices[i].getTextureCoordinates().getX();
textureData[i * 2 + 1] = vertices[i].getTextureCoordinates().getY();
}
textureBuffer.put(textureData).flip();
textureBuffer.put(colorData).flip();
textureBufferObject = storeData(textureBuffer, 2, 2);