OpenGL 3D Game Tutorial 6: Texturing

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.
Back to Top