Hello, I have a voxel engine that uses geometry shaders to render chunks of 16^3 cubes. The code generates one point for voxel and then packs all the points in a vbo. My geometry shader then generates the faces from the point.
The problem is that the cubes seem to follow my 3d camera in a billboard-style, therefore I cannot see any other face than the front one.
I am new to shaders in general, so I took one and edited it trying to learn something
My question is: is there a way to stop this behavior? And, if yes, how?
http://pastebin.java-gaming.org/7d90626362a1b Geometry shader
http://pastebin.java-gaming.org/d9066363a2b10 Render Class
http://pastebin.java-gaming.org/0666a5b302f18 Chunk Class
http://pastebin.java-gaming.org/666ab603f281f World Class
http://s23.postimg.org/5u28mu3o7/bug.jpg
I can only see the front faceā¦
Thanks in advance
Also, english isnāt my first language, so I apologize for any mistakeā¦