Cut holes in a Texture2D
问题 I want to know how to remove part of a Texture from a Texture2D. I have a simple game in which I want to blow up a planet piece by piece, when a bullet hits it "digs" into the planet. The physics are already working but I am stuck on how to cut the texture properly. I need to create a function that takes a Texture2D a position and a radius as input and returns the new Texture2D. Here is an example of the Texture2D before and after what I want to accomplish. http://img513.imageshack.us/img513