how to use shadeblend?

BlitzMax Forums/BlitzMax Programming/how to use shadeblend?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you have a rectangle around it then probably it is not `masking` the parts that are meant to be transparent.

To get around this you have to set all the pixels that you want to show as fully transparent, to black or white (can't remember which, either $000000 or $FFFFFF). These will then act as if they are `masked` at the same time as shadeblended.

If the math for shadeblend is source*dest, you should work with that math so that the pixels you want to be transparent calculate out to not change the destination.