# Draw cube in glsl shader

I am working on a voxel engine. Currently my cubes are rendered as vbos. I thought, it may be better to load only the cooridinates of voxels to the shader and make it draw a cube itself. Can someone tell me, if thats possible, and if so, how?

2. You can subdivide your world into different chunks and generate a vbo per chunk each time that a chunk is changed. Or you can generate your vbo per frame and just add everything which is visible to the camera.