Repeat UV for multiple cubes in one vertex buffer object (VBO)?
问题 I am making a little voxel engine using a chunk system (like in Minecraft). I decided to make 1 VBO per chunk, so the VBO contain multiple cubes that will use different textures. I actually have the UV of a cube and i would like to use it on all cubes in a VBO so the texture will wrap all cubes the same way if the cubes were in separated VBOs. Here is what I'm actually getting: How to tell OpenGL to do the same thing as the first cube on all cubes? EDIT: here are my shaders: vertex shader