• Advertisement
Sign in to follow this  

only showing part of a texture?

This topic is 2765 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I am trying do something similar to do a lighting effect similar to this:


Unfortunately, that is in flash and I would like to do it using either SDL or openGL. I am running into a bit of a snag of how something like that would be accomplished.

I was thinking that I would have my bottom texture for the board, then a full black shape covering it, then put a polygon with an alpha on 0 on top of that for the 'lighting'. However, after searching for quite some time, I have come up with nothing.

Would anyone be able to help point me in the right direction?

Thank you in advance!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement