LWJGL tutorial series on how to create a 3D Java game with OpenGL!
This week we learn how to texture models using opengl.
Common mistakes:
If you get the "fatal" error that I get at the end of the video then check that you're storing the texture coordinate VBO in attribute 1 of the VAO and that you indicate that they are 2D coordinates (see 10:51 in the video)
-Make sure that your "out" variables in the vertex shader have the EXACT same pass as the corresponding "in" variables in the fragment shader. You can't call it "pass_textureCoords" in one and "pass_textureCoordinates" in the other.
-Make sure that the names of the "in" variables in the vertex shader are spelled correctly in the bindAttributes() method in the StaticShader class.
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
End of video music: http://freemusicarchive.org/music/Kai...