View Full Version : Transparant shadow maps

08-11-2004, 03:13 AM

I've done shadow maps using arb vertex/fragment program. The shadow looks good but they are totally black. How can I make them transparant? Which asm commando should I use?

//Regards, Ninja

08-17-2004, 10:39 AM
This is pretty simple, just use a color map and modulate the light contribution (or the result, really makes no diff unless you have emissive & ambient).

You can do even better than this if you include depth in the texture, there's a D3D example called "Transparent shadowmapping" here:


08-17-2004, 07:46 PM
Correct link:

"start=" links only work as long as I don't update my website. As soon as I add a demo, it will slip to the next demo. Bad first attempt at supporting direct links to specific demos. :) Didn't realize that problem until a good deal later. But nowadays I use "id=" links, which works permanently.