Page 1 of 1

About Alpha

PostPosted: Jul 5, 2002 @ 3:26pm
by BrandG
I found the alpha setting (SetBlending), and I'm trying to use it to shade a sprite (blit an image, then blit a translucent black square over it). However, the SetBlending seems to make the images fade in over time, and they all come up red. Am I using the wrong function? Has anybody tried to do this shading before?

PostPosted: Jul 5, 2002 @ 5:16pm
by Conan

PostPosted: Jul 5, 2002 @ 9:04pm
by BrandG

what I'm using the alpha blend for

PostPosted: Jul 5, 2002 @ 10:20pm
by Conan

PostPosted: Jul 5, 2002 @ 10:35pm
by Kzinti

PostPosted: Jul 6, 2002 @ 4:34pm
by BrandG
Actually, I found an even better way (at least, I THINK it's better).

I created a pixel shader based on the ir_shader that you guys were talking about in a previous thread. My pixel shader just takes the current light value, and ramps down all RGB values for each pixel. It's no real framerate hit, and gets great-looking results.

Thanks guys.