LWJGL tutorial series on how to create a 3D Java game with OpenGL!
This week we learn how to render a model using VAOs and VBOs.
Here are the vertices that we used:
float[] vertices = {
-0.5f, 0.5f, 0f,
-0.5f, -0.5f, 0f,
0.5f, -0.5f, 0f,
0.5f, -0.5f, 0f,
0.5f, 0.5f, 0f,
-0.5f, 0.5f, 0f
};
Full code available here: https://github.com/TheThinMatrix/Open...
LWJGL Wiki: http://lwjgl.org/wiki/index.php?title...
Support the series on Patreon: / thinmatrix
Facebook Page: / thinmatrix
Tumblr: / thinmatrix
Instagram: / thin_matrix
Twitter: / thinmatrix
Check out my game on IndieDB: http://www.indiedb.com/games/equilinox