Aeluned
02-10-2009, 08:46 AM
I'm trying to generate a border around typed characters. Something that looks like this:
http://img19.imageshack.us/img19/2864/hardedgexz2.png
I can't seem to come up with a solution that performs quickly enough.
How would you do this in OpenGL? The border needs to be regenerated every frame and it would be nice if the border size could be set by the user.
I keep thinking there should be a way to pull it off with a fragment shader, but I haven't managed it yet.
Any ideas?
Thanks guys.
http://img19.imageshack.us/img19/2864/hardedgexz2.png
I can't seem to come up with a solution that performs quickly enough.
How would you do this in OpenGL? The border needs to be regenerated every frame and it would be nice if the border size could be set by the user.
I keep thinking there should be a way to pull it off with a fragment shader, but I haven't managed it yet.
Any ideas?
Thanks guys.