I have a tile map that I randomly generate using a vertex array. I have been wanting to add in destructible terrain, so I read
http://en.sfml-dev.org/forums/index.php?topic=7427.15 which seemed promising. I've been messing around for a while trying to get a demo working, but can't seem to implement it correctly.
Could anyone give me the general flow of how to use RenderTexture and this Shader to change a map made from a vertexArray? Any hints in the right direction would be greatly appreciated.
Even a simple example without using a vertexArray would be helpful. Thank you.