Apr-09-2017, 11:51 AM
There are many ways to render object on the screen,such as using VAO/VBO and glbegin/glend,but how do I destroy them or remove them from the scene?
One way I can think of is by making the object transparent by changing the alpha value in the shader,
But there are some problem,
1)the object isn't really removed or destroyed,but just invisible instead.
2)I need to rerender the whole scene from back to front again.
My main question is,how does games like minecraft destroy its block when player destroys it?
One way I can think of is by making the object transparent by changing the alpha value in the shader,
But there are some problem,
1)the object isn't really removed or destroyed,but just invisible instead.
2)I need to rerender the whole scene from back to front again.
My main question is,how does games like minecraft destroy its block when player destroys it?