Alpha map in stencil shadow

Started by
1 comment, last by SimmerD 18 years, 5 months ago
Is a bealtifull day, you are walking in the parking, you look to a tree shadow and OH NO there is no leaf tex, just circles(my tree is made of spheres with leafs texture), i am a shading and c++ noob so how i can solve this problem.
Advertisement

You probably need to switch to shadow maps for that one, or else you explicit leaf geometry to render the shadow volume.
Joshua Barczak3D Application Research GroupAMD
I was thinking about this very issue this weekend. I think you could combine the stencil shadow and the leaf shadow. For instance, set destalpha based on both the stencil saying 'shadow' and a projected texture saying 'shadow'.

But, I'm not sure what benefit this has over just projected shadows or shadow maps. Perhaps you could use stencil for the trunk & branches, but projected textures for the leaves...

This topic is closed to new replies.

Advertisement