Transparant shadow maps

Hi,

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

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:

http://esprit.campus.luth.se/~humus/?page=3D&id=39

Correct link:
http://esprit.campus.luth.se/~humus/?page=3D&id=39

“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. :slight_smile: Didn’t realize that problem until a good deal later. But nowadays I use “id=” links, which works permanently.