Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sprite masking with shader  (Read 1199 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 8
    • View Profile
Sprite masking with shader
« on: July 02, 2013, 03:20:02 am »
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.